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 ArticleAnswer by Supriyo Naskar for Error: Cannot attach empty file in GMAIL app...
You have to grant the permission to access storage for gmail.
View ArticleAnswer 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 ArticleAnswer by PArth SOni for Error: Cannot attach empty file in GMAIL app using...
Uri contentUri = FileProvider.getUriForFile(this, "com.mydomain.fileprovider",...
View ArticleAnswer 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 ArticleAnswer 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 ArticleError: 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