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", Activity.MODE_PRIVATE);
boolean test=userPrefFile.getBoolean("PREFERENCE_TEST", false);


On Oct 8, 5:40 pm, Eric Carman <[email protected]> wrote:
> 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.htmlhttp://developer.android.com/guide/samples/ApiDemos/src/com/example/a...http://developer.android.com/guide/samples/ApiDemos/res/xml/preferenc...http://developer.android.com/reference/android/preference/PreferenceM...
>
> http://www.androidguys.com/2008/09/29/whats-your-preference-part-one/
>
> And check out the sample applications where I believe there are
> examples.
>
> I'm not at my development machine right now so I don't have access to
> examples for you, but in one application where I included preferences,
> I was able to implement most of it via xml files and a single
> activity. It's a little tough to get your head around at first, but
> very flexible once you start to get into it.
>
> HTH
>
> Best Regards,
> Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to