Code example for Preference

Methods: getContextgetKeysetOnPreferenceChangeListener