Please go back and re-read my previous message, starting with HOWEVER.
I answered this question there.
You CANNOT attach files from your app's internal directory. The mail
app has no access to that file, it is private to your application.
This is the intended behavior. If you want to provide that
Please do not construct filenames and Uri's by pasting together
strings.
The correct way to write this is:
Uri.fromFile(new
File(Environment.getExternalStorageDirectory(), zibra.txt))
or to make it a bit more clear:
File dirFile = Environment.getExternalStorageDirectory();
Hello Bob,
Thanks for your suggestion. I have two questions to you..
How do I attach with EXTRA_STREAM in that case while I put the file
with Uri.fromFile().
File dirFile = getFilesDir();
File zibraFile = new File(dirFile,zibra.csv);
Uri zibraUri =
3 matches
Mail list logo