Brad Gies wrote:
> Can someone clarify how to use getSharedPreferences*(String 
> <http://code.google.com/android/reference/java/lang/String.html> name, 
> int mode) * ?
> 
> I have created a preferences.xlm file, added some Boolean preferences, 
> can edit them from an activity, but I can’t seem to figure out how to 
> get the values into another activity in my application using 
> getSharedPreferences.
> 
> I know… it should be simple… and I’m sure it is… but I can’t figure out 
> what name to put in or what mode.
> 
> Any help or links to sample code appreciated.

Use PreferencesManager.getDefaultSharedPreferences() instead. This will 
return the SharedPreferences object that lines up with the preference 
screen system.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~---------~--~----~------------~-------~--~----~
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