Android Question Where to store files that can survive after the App is un-installed

cooperlegend

Active Member
Licensed User
Longtime User
I think I read that File.DirRootExternal should no longer be used. I have some files (id numbers etc.) that I would like stored somewhere other than the App directory so that they can survive an App being un-installed and re-installed. Please advise
 

DonManfred

Expert
Licensed User
Longtime User
I think I read that File.DirRootExternal should no longer be used.
Yes? Where? Why?
I have some files (id numbers etc.) that I would like stored somewhere other than the App directory so that they can survive an App being un-installed and re-installed.
I would store it in a Path in DirRootExternal.
But be aware that the User may be able to Delete them as he has full access to this path and subfolders.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
In the long run it will be more difficult to access File.DirRootExternal and any of its subfolders except of RP.GetSafeDirDefaultExternal. It will be similar to accessing external storages and will require the user to select the path.
For now you can still use it.

The app folders will be deleted when the app is uninstalled (though there is an automatic backup feature in newer versions of Android).
 
Upvote 0
Top