I can save a file when the activity is paused.
I have tried doing that in File.dirinternalcache
But when the app is opened again, or resumed, the saved file appears to have gone.
Where is the best place to save :
- Work in progress so that it can be auto-opened for the user when they come back
- Timed backups, so that people could access them and copy them away to an SD card or PC if they need to?
The default folder for files should be File.DirInternal. Such files will not be deleted.
You can use ExternalStorage class to save files on the SD card. It is a bit more complicated.
You can also let the user "share" the file with an intent and restore it with ContentChooser.