Android Question Creating a file that will not be removed when uninistall

trepdas

Active Member
Licensed User
Longtime User
Hello good people,

I am trying to make a backup feature in my app , in case user uninstall and reinstall the app again.

if user reinstall - the app will try to look for this file (assuming it still exists and not deleted).

Where should I write this file?

what would be the best method to do this?

XOXOX
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Best methods:
1. Store it on your server.
2. Let the user choose the destination with ExternalStorage and later let the user restore it with ExternalStorage or ContentChooser.

You can create a custom folder under File.DirRootExternal however it will not work for long ( android.jar / targetSdkVersion / minSdkVersion )
 
Upvote 0
Top