Code example for ListPreference

Methods: setOnPreferenceChangeListener, getValue, setSummary