Quantcast
Channel: Error: Cannot attach empty file in GMAIL app using File provider - Stack Overflow
Browsing latest articles
Browse All 7 View Live

Answer by Saik Caskey for Error: Cannot attach empty file in GMAIL app using...

In case it helps- here's what I do in an app debug function with a few files, it shouldn't really be any different. I do copy/export them into a user-public folder first before attaching them, and make...

View Article



Answer by Supriyo Naskar for Error: Cannot attach empty file in GMAIL app...

You have to grant the permission to access storage for gmail.

View Article

Answer by bhaskar kurzekar for Error: Cannot attach empty file in GMAIL app...

String filename="my_file.vcf"; File filelocation = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), filename);Uri path = Uri.fromFile(filelocation); Intent emailIntent = new...

View Article

Answer by PArth SOni for Error: Cannot attach empty file in GMAIL app using...

Uri contentUri = FileProvider.getUriForFile(this, "com.mydomain.fileprovider",...

View Article

Answer by Drim for Error: Cannot attach empty file in GMAIL app using File...

if it's ok To send Zip then try this way String fileNameStor_zip = Environment.getExternalStorageDirectory() +"/" + fileName +".zip";String[] path = { your 1st pdf File Path, your 2nd pdf File...

View Article


Answer by Simranjeet Singh for Error: Cannot attach empty file in GMAIL app...

Send the file in URI format like this:Intent emailIntent = new Intent(Intent.ACTION_SEND_MULTIPLE); emailIntent.setData(Uri.parse("mailto:")); emailIntent.setType("application/image");...

View Article

Image may be NSFW.
Clik here to view.

Error: Cannot attach empty file in GMAIL app using File provider

I am trying to attach a pdf file in gmail app. I have read this and this (applied solution) I am trying as;public static void attachFile(Context ctx) { String TAG = "Attach"; File documentsPath = new...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images