Hello,

I need help with what should be a trivial question.

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.

The Android doc says that access to the SharedPreferences object is
simple through getSharedPreferences(). Okay, fair enough, it's simple.
But it seems to me that If the getSharedPreferences() method takes the
name of a preferences file, I would need to somehow know what name to
specify there so it's reading the same file the preferences screen
wrote.

In review, what I need to do is read the preferences that were saved.
Can someone clue me in on how to do that?

Thanks,
Kelly Schrock

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
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