Showing posts with label preferences. Show all posts
Showing posts with label preferences. Show all posts

Monday, June 4, 2012

How do I get the SharedPreferences from a PreferenceActivity in Android?


I am using a PreferenceActivity to show some settings for my application. I am inflating the settings via a xml file so that my onCreate (and complete class methods) looks like this:

Wednesday, May 30, 2012

How do I display the current value of an Android Preference in the Preference summary?


This must come up very often.



When the user is editing preferences in an Android app, I'd like them to be able to see the currently set value of the preference in the Preference summary.

Tuesday, April 3, 2012