Developing a simple database app in B4A.
Currently I handle application settings with File.ReadMap and File.WriteMap etc. and this seems to work well. What are the benefits of using instead the PreferenceActivity or AHPreferenceActivity libraries?
Ok, in what way is it better?
I can let the user change the settings via a menu or a dedicated settings page, using File.WriteMap for persistence.
I will look into KeyValueStore 2, but I like the simplicity of File.WriteMap and File.ReadMap. Similar to an .ini file and
I am used to that.
But I can write the Map data to a text file. I can see though that if there are a lot of settings, a database for storage has benefits, eg.
multiple text replacements. Will switch to KVS2 and see how it works.
OK, thanks. Yes, that could be handy, saving me the conversion to and from strings.
You convinced me now.
Not sure yet about PreferenceActivity or AHPreferenceActivity.
BTW, there are cases where File.WriteMap / ReadMap are more appropriate. For example in B4J apps it can be useful for configuration files as the user can modify it with a text editor.