Thank you for the information. I have another doubt
I was going through the source code of Preference, PreferenceManager and PreferenceActivity in order to understand the preference framework of android. According to the documentation, the Preference class does the job of inflating the preference UI from an XML file and also takes care of persisting the preferences to the SharedPreferences, and I confirmed this from the source code. PreferenceActivity is used in order to display the inflated preference UI onto the screen I am confused as to how the PreferenceManager class fits into this scheme. Does the PreferenceManager have any role to play in the persistence? What is the link between these three classes? In addition, once the xml file has been loaded using addPreferenceFromResource() how do I access the preferences file; do I create an instance of PreferenceManager and use the getDefaultSharedPreferences() function or directly create a SharedPreferences object and use the getSharedPreferences() function? Abhinav On Apr 17, 11:20 am, "~ TreKing" <[email protected]> wrote: > On Fri, Apr 16, 2010 at 12:14 AM, Abhinav <[email protected]>wrote: > > > What is the difference between Preference.OnPreferenceChangeListener and > > Preference.OnPreferenceClickListener? > > Going to go out on a limb and take a massive stab in the dark ... but ... > maybe, on tells you when a preference was CHANGED and one tells you a > preference was CLICKED. > Just a guess though. I guess I could take a look at the documentation to > find out for sure, since it's right there in the description for each ... > but that would be too easy. > > http://developer.android.com/intl/de/reference/android/preference/Pre... > > <http://developer.android.com/intl/de/reference/android/preference/Pre...>http://developer.android.com/intl/de/reference/android/preference/Pre... > > ------------------------------------------------------------------------------------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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

