Quantcast
Channel: Error: Cannot attach empty file in GMAIL app using File provider - Stack Overflow
Viewing all articles
Browse latest Browse all 7

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

$
0
0

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 Path};Compress compress = new Compress(path, fileNameStor_zip);compress.zip();URI =  Uri.parse("file://" + fileNameStor_zip);

Provide your Gmail Intent

intent.putExtra(Intent.EXTRA_STREAM, URI);

Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>