Android Question App configration in File.DirInternal

Devv

Active Member
Licensed User
Longtime User
How could i make an configuration file for my app in the File.DirInternal directory.
and change a value when the user change a thing in the gui.
some windows apps used to save their configuration in a ".ini" file. in a format near to this:

SCREEN SIZE = 200 * 200
auto update = true
listening pot = 30

any ideas ?
 

udg

Expert
Licensed User
Longtime User
Hi Devv,

you could use a Map object for your key-value pairs and then write and read that Map with functions like these ones.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Better use a map and then write the map with randomaccessfile.writeb4xobject and read the map back with randomaccessfile.readb4xobject
 
Upvote 0
Top