[android-developers] Re: prob in attaching txt file while email from internal package file storage

2010-06-09 Thread Bob Kerns
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

[android-developers] Re: prob in attaching txt file while email from internal package file storage

2010-06-08 Thread Bob Kerns
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();

[android-developers] Re: prob in attaching txt file while email from internal package file storage

2010-06-08 Thread adag
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 =