My goal is to store temporary files in the directory returned by Context # getCacheDir ().
/data/data/my.app/cache/somedir/foo.json
I suppose I can just use java.io apis to write files there. But I'm not sure how to set permissions on files there, because I could not use Context # MODE_PRIVATE.
The file name parameter for context # openFileOutput and context # openFileInput cannot accept path-delimited input. Thus, they are only useful for files created in a directory:
/data/data/my.app
java android mobile
Jacques RenΓ© Mesrine
source share