Android Question How do you store user preferences or settings?

schemer

Active Member
Licensed User
On a pc I use the registry to store user preferred settings. How do I store settings on an app created with B4A for an app? Is this done by storing a file like a .ini file or a text file (csv) and read into the app when the users opens it up?
Thanks,
schemer
 

Troberg

Well-Known Member
Licensed User
I use a map with a file backend, thinly encapsulated in a setting class.

On PC, I use a local ini-file. Much easier to maintain, move and hand edit (compared to registry).
 

schemer

Active Member
Licensed User
Note that KeyValueStore is a more powerful option for storing data.
After looking at the two options the KeyValueStore is the better option altough the other (statemanager) will come in handy for what it does. ;)
Thanks,
schemer
 
Top