What I did was to create a singleton class that encapsulated the
preferences. The class has an "update" method that I call when I
return from setting the preferences. Otherwise, as a singleton class
it is available to all activities and units.
As to how I fetch the preferences, I use the followin
Thanks this is very helpful. How do I then access the settings from a
different activity within the app? The following code doesn't seem to
work, should I use something different for where "USER_PREFERENCES"
is?
SharedPreferences userPrefFile = this.getSharedPreferences
("USER_PREFERENCES", Act
I think what you are looking for is Preferences, in Android speak.
Try the following for some more details:
http://developer.android.com/guide/topics/data/data-storage.html
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/PreferencesFromCode.html
http://develo
3 matches
Mail list logo