Search in sources :

Example 16 with PreferenceManager

use of android.preference.PreferenceManager in project divide by HiddenStage.

the class Settings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    PreferenceManager manager = getPreferenceManager();
    manager.setSharedPreferencesName(PREFERENCE_NAME);
    addPreferencesFromResource(R.xml.prefs);
}
Also used : PreferenceManager(android.preference.PreferenceManager)

Aggregations

PreferenceManager (android.preference.PreferenceManager)16 Activity (android.app.Activity)3 SharedPreferences (android.content.SharedPreferences)3 Preference (android.preference.Preference)3 Method (java.lang.reflect.Method)3 Test (org.junit.Test)2 TimePickerDialog (android.app.TimePickerDialog)1 Editor (android.content.SharedPreferences.Editor)1 Vibrator (android.os.Vibrator)1 CheckBoxPreference (android.preference.CheckBoxPreference)1 ListPreference (android.preference.ListPreference)1 OnPreferenceChangeListener (android.preference.Preference.OnPreferenceChangeListener)1 OnPreferenceClickListener (android.preference.Preference.OnPreferenceClickListener)1 PreferenceCategory (android.preference.PreferenceCategory)1 PreferenceScreen (android.preference.PreferenceScreen)1 RingtonePreference (android.preference.RingtonePreference)1 ListView (android.widget.ListView)1 TimeZonePickerDialog (com.android.timezonepicker.TimeZonePickerDialog)1 TimeZonePickerUtils (com.android.timezonepicker.TimeZonePickerUtils)1 Module (de.robv.android.xposed.installer.repo.Module)1