mrossen Active Member Licensed User Longtime User Jul 26, 2011 #1 Hi there, How are app settings stored in android? I would like to store my app settings like you do in reg. or ini files in windows. Mogens
Hi there, How are app settings stored in android? I would like to store my app settings like you do in reg. or ini files in windows. Mogens
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2011 #2 The simplest way is to store a file in File.DirInternal. Put all the settings in a Map and then use File.WriteMap to save the settings. Upvote 0
The simplest way is to store a file in File.DirInternal. Put all the settings in a Map and then use File.WriteMap to save the settings.
M magarcan Active Member Licensed User Longtime User Jul 26, 2011 #3 Erel said: The simplest way is to store a file in File.DirInternal. Put all the settings in a Map and then use File.WriteMap to save the settings. Click to expand... Very interesting. Any sample?? Upvote 0
Erel said: The simplest way is to store a file in File.DirInternal. Put all the settings in a Map and then use File.WriteMap to save the settings. Click to expand... Very interesting. Any sample??
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2011 #4 Actually a better answer would be to use StateManager (which uses this technique internally): http://www.b4x.com/forum/basic4andr...id-applications-settings-state.html#post54161 Upvote 0
Actually a better answer would be to use StateManager (which uses this technique internally): http://www.b4x.com/forum/basic4andr...id-applications-settings-state.html#post54161
nfordbscndrd Well-Known Member Licensed User Longtime User Jul 26, 2011 #5 Whether you use StateManager or roll your own save/reload routines, be sure to also see this Documentation Wiki page regarding the use of Activity_Pause and Resume. Upvote 0
Whether you use StateManager or roll your own save/reload routines, be sure to also see this Documentation Wiki page regarding the use of Activity_Pause and Resume.