Android Question Store variable persistent

Andromeda

Member
Licensed User
Longtime User
Hello,

is there a way to store "some" variables easily, when the app is closed and the next time you will start the app it will have access to?
I dont want to use a database for 3..4 Variables...
 

mangojack

Expert
Licensed User
Longtime User
For something like this File.WriteMap and File.ReadMap would be the go ..

 
Upvote 0

Andromeda

Member
Licensed User
Longtime User
Looks like a big solution for key value store.

In Java i found this
SharedPreferences sharedPreferences = context.getSharedPreferences("DATA",Context.MODE_PRIVATE);
sharedPreferences.edit().putString("KEY",yourVar).apply();

but in b4x?
 
Upvote 0

Andromeda

Member
Licensed User
Longtime User
Does the Statemanager also functioning when you close the app ...and hours later you open the app again?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…