Hi,
My objective is to attaching csv file from internal file storage which was created by openFileOutput().
It stored file in: "/data/data/com.example/files/zibra.csv".
I could attach and email file from sdcard as follows
Uri.parse("file://"+Environment.getExternalStorageDirectory()+"/zibra.csv"));
and I could successfully get email in my mail box with attachment.
But while I try to attach from internal file storage using
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+getFilesDir() + "/zibra.csv"));
I receive emails in my mail box but without any attachment.
the code snippets as follows:
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_EMAIL, recipients);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "attachment test");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse
("file://"+ getFilesDir() + "/zibra.txt"));
//("file://"+Environment.getExternalStorageDirectory()+"/
zibra.txt"));
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, "Send mail..."));
Any righteous solution is welcome..


