kelly wrote:
> I created a PreferenceActivity with a couple of preferences on it. I
> can change and (apparently) save these preferences with no effort. The
> UI looks nice, yadda yadda yadda.
> 
> Now, I've reached the point where I need to get to the saved
> preference values programmatically, and make actual use of them. In my
> application's main activity, I'm calling getSharedPreferences(), but
> none of the preferences I've saved in the elegant Preferences UI seem
> to exist anywhere.

Try PreferenceManager.getDefaultSharedPreferences(this) instead of 
getSharedPreferences(), where "this" is your Activity or other Context.

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to