I am little confused with the two methods available in PreferenceActivity
, that are getPreferenceScreen()
and getPreferenceManager()
.
I have gone through the stackoverflow thread :
PreferenceFragment - Difference between getPreferenceManager() and getPreferenceScreen()?
Which says that
getPreferenceScreen()
: is related to screen and setting the values of xml and getPreferenceManager()
: is related to preference management, i.e. getting the settings map and putting the values
But I am using the getPreferenceManager()
and still can update Preferences and its summary in xml.
Can anyone please help me out to understand what is the key difference and what to use in what location?