Code example for ListPreference

Methods: findIndexOfValue, getEntryValues