Android Question Safe location to store files

Sub7

Active Member
Licensed User
Longtime User
Hello!
In my app there's essentially two files that has to be saved, a text file, an image.
The image file is saved from an imageview which is "populated" by an image picked from android gallery, the second file is a .dat file and contain some important user informations.
That two files are important for the application and without them the app will not work properly.
In which folder should i save that files so the user cannot delete it?
The filer folder must be r/w and the files should not be deleted if the user click "delete data application" in applications settings (android settings)
For rooted users i don't think i have much to do, but that's another problem.

Thx
 

Sub7

Active Member
Licensed User
Longtime User
File.DirInternal - r/w and is only accessible from your app (on unrooted devices).
Thank you, i dont have my code here but when i tried to save the picture from the imageview to file.DirInternal it get saved but i cannot open it.
I used root browser to navigate to my app folder, i found the files but cannot open the image. Nomal? only the app can open it? ty again.
 
Upvote 0
Top