Where should I store my Android application's configuration settings? Coming from the .NET world I was expecting something like .config. Do I create a file under res/values, and use that?
From stackoverflow
-
There is no
res/assets
. There areassets/
andres/raw/
for arbitrary files, andres/xml/
for arbitrary XML files. However, all of those are packaged as part of the APK and are not modifiable at runtime.Take a look at
SharedPreferences
and thePreferenceScreen
system for collecting them from users, if these are user-selected configuration settings.fatcat1111 : SharedPreferences is what I need. Thank you!
0 comments:
Post a Comment