Trying To Send A Created Text File As An Email Attachment - From A Default Folder
I am trying something simple as creating a text file and then send it as attachment. While it works fine if I use the sdcard I don't know where to put it in the 'standard data fold
Solution 1:
This is becuase the SD card is not protected, so you can write to there in the standart java way as you did.
In order to write to the Android file system you cannot use this, since every file is protected using an App key to avoid other apps to use it.
You shoud use openFileOutput() see this tutorial for more info:
Post a Comment for "Trying To Send A Created Text File As An Email Attachment - From A Default Folder"