Android Question StateManager Library- Delete settings file completely

Manolete

Member
Licensed User
Hello Erel,
Is there a chance to delete completely the settings file saved in File.DirInternal when the app is being uninstalled.
We have the problem that, when the user reinstall the App the old settings file comes up and this is not good for us.
We need to clear the settings everytime the app is uninstalled.

Thanks in advance.
Manuel
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Reinstalling an app is not the same as uninstalling it and installing it again. File.DirInternal files are kept when the app is reinstalled.

The state is saved in a file named:
B4X:
statesFileName = "state.dat" 'StateManager.Process_Globals

You can change the file name (in the above line) when you release a new version and then the old state will be discarded.
 
Upvote 0
Top