[android-developers] Re: settings page for app design

2009-10-14 Thread Eric Carman
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

[android-developers] Re: settings page for app design

2009-10-13 Thread Bob
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

[android-developers] Re: settings page for app design

2009-10-08 Thread Eric Carman
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