Best code examples for Android PreferenceGroup class (android.preference.PreferenceGroup)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android PreferenceGroup class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android PreferenceGroup examples from Open Source projects
This code example shows how to use the following methods: findPreference
80:	mRecognizerPref = (ListPreference) mVoiceCategory.findPreference(KEY_RECOGNIZER); 
81:	mRecognizerSettingsPref = mVoiceCategory.findPreference(KEY_RECOGNIZER_SETTINGS); 
82:	mTtsSettingsPref = mVoiceCategory.findPreference(KEY_TTS_SETTINGS); 
-
85:	mVoiceCategory.findPreference(KEY_RECOGNIZER_SETTINGS); 
-
99:	mFragment.getPreferenceScreen().removePreference(mVoiceCategory); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: findPreference
80:	mRecognizerPref = (ListPreference) mVoiceCategory.findPreference(KEY_RECOGNIZER); 
81:	mRecognizerSettingsPref = mVoiceCategory.findPreference(KEY_RECOGNIZER_SETTINGS); 
82:	mTtsSettingsPref = mVoiceCategory.findPreference(KEY_TTS_SETTINGS); 
-
85:	mVoiceCategory.findPreference(KEY_RECOGNIZER_SETTINGS); 
-
99:	mFragment.getPreferenceScreen().removePreference(mVoiceCategory); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: findPreference
56:	return preferenceScreen.findPreference(key); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: findPreference, removePreference
102:	Preference preference = parentPref.findPreference(prefKey); 
-
112:	parentPref.removePreference(preference); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addPreference, findPreference, removePreference
75:	if ( parent.findPreference(KEY_LAUNCHER) == null){ 
76:	parent.addPreference(mLauncherSettings); 
-
79:	if ( parent.findPreference(KEY_LAUNCHER) != null){ 
80:	parent.removePreference(mLauncherSettings); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
204:	mConfigure.setEnabled(enable); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addPreference
257:	mShortcutGroup.addPreference(pref); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: findPreference
43:	CheckBoxPreference enable = (CheckBoxPreference) prefs.findPreference(ENABLE_PUSH); 
-
46:	CheckBoxPreference enableTest = (CheckBoxPreference) prefs.findPreference(ENABLE_TEST_PUSH); 
-
49:	CheckBoxPreference enableUpdates = (CheckBoxPreference) prefs.findPreference(ENABLE_UPDATES_PUSH); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
92:	websiteSettings.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getContext, addPreference
41:	Context c = subpanel.getContext(); 
42:	subpanel.addPreference(createSecretPreference(c)); 
43:	subpanel.addPreference(createSecretStringPreference(c)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getPreference
239:	mainScreen.getPreference(0).setEnabled(false); 
240:	mainScreen.getPreference(1).setEnabled(false); 
241:	mainScreen.getPreference(3).setEnabled(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getContext, addPreference
38:	Context c = subpanel.getContext(); 
39:	subpanel.addPreference(createEncryptionPreference(c)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addPreference
83:	prefScreen.addPreference(mSubtypeEnablerPreference); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setEnabled
100:	websiteSettings.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setTitle, addPreference
93:	PreferenceCategory generalPrefs = new PreferenceCategory(this); 
94:	generalPrefs.setTitle("General"); 
-
105:	generalPrefs.addPreference(decimalPlaces); 
-
112:	generalPrefs.addPreference(runStartup); 
-
119:	generalPrefs.addPreference(shakeEnabled); 
-
126:	generalPrefs.addPreference(ttsEnabled); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getContext, addPreference
41:	Context c = subpanel.getContext(); 
42:	subpanel.addPreference(createSecretPreference(c)); 
43:	subpanel.addPreference(createSecretStringPreference(c)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getSharedPreferences, findPreference
127:	SharedPreferences sp = pfs.getSharedPreferences(); 
128:	Preference pref = pfs.findPreference(fieldName); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getContext, addPreference
38:	Context c = subpanel.getContext(); 
39:	subpanel.addPreference(createEncryptionPreference(c)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setTitle, addPreference
52:	PreferenceCategory root = new PreferenceCategory(this); 
53:	root.setTitle("Controller"); 
54:	getPreferenceScreen().addPreference(root); 
-
65:	root.addPreference(numButtons); 
-
73:	root.addPreference(buttonsPerRow); 
-
81:	root.addPreference(numSliders); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addPreference
257:	mShortcutGroup.addPreference(pref); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference, removePreference
80:	Preference p = category.findPreference(key); 
81:	category.removePreference(p); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference, removePreference
104:	Preference preference = parentPref.findPreference(prefKey); 
-
114:	parentPref.removePreference(preference); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setSummary, setTitle, setEnabled
44:	login.setEnabled(true); 
45:	login.setTitle("Login"); 
46:	login.setSummary(""); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setEnabled
575:	screen.setEnabled(false); 
576:	WebStorage.getInstance().getOrigins(new ValueCallback<Map>() { 
-
584:	GeolocationPermissions.getInstance().getOrigins(new ValueCallback<Set<String> >() { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addPreference
82:	prefScreen.addPreference(mSubtypeEnablerPreference); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setTitle, addPreference
43:	PreferenceCategory syncPrefCat = new PreferenceCategory(this); 
44:	syncPrefCat.setTitle("Sync accounts"); 
-
63:	syncPrefCat.addPreference(syncDropboxSwitchPref); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setTitle, addPreference
117:	PreferenceCategory masterInfoPrefCat = new PreferenceCategory(this); 
118:	masterInfoPrefCat.setTitle("Master Username/Password"); 
-
126:	masterInfoPrefCat.addPreference(editUsername); 
-
133:	masterInfoPrefCat.addPreference(editPassword); 
-
139:	masterInfoPrefCat.addPreference(removeLogin); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setTitle, addPreference, PreferenceGroup.addPreference
58:	PreferenceCategory notificationPreferences = new PreferenceCategory(this); 
59:	notificationPreferences.setTitle("Notifications"); 
-
90:	notificationPreferences.addPreference(notifyEnabled); 
-
99:	notificationPreferences.addPreference(notifyMode); 
-
112:	notificationPreferences.addPreference(notifyTime); 
-
135:	notificationPreferences.addPreference(notifyInterval); 
-
145:	notificationPreferences.addPreference(notifyIntervalTime); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference, removePreference
158:	PreferenceGroup generalPrefs = (PreferenceGroup) prefSet.findPreference("general_section"); 
-
162:	CheckBoxPreference cPref = (CheckBoxPreference) prefSet.findPreference(PULSE_PREF); 
-
167:	mDefaultPref = (ApplicationLightPreference) prefSet.findPreference(DEFAULT_PREF); 
-
173:	mCustomEnabledPref = (CheckBoxPreference) prefSet.findPreference(CUSTOM_PREF); 
-
179:	PreferenceGroup phonePrefs = (PreferenceGroup) prefSet.findPreference("phone_list"); 
-
185:	prefSet.removePreference(phonePrefs); 
-
187:	mCallPref = (ApplicationLightPreference) prefSet.findPreference(MISSED_CALL_PREF); 
-
192:	mVoicemailPref = (ApplicationLightPreference) prefSet.findPreference(VOICEMAIL_PREF); 
-
199:	mApplicationPrefList = (PreferenceGroup) prefSet.findPreference("applications_list"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference, removePreference
158:	PreferenceGroup generalPrefs = (PreferenceGroup) prefSet.findPreference("general_section"); 
-
162:	CheckBoxPreference cPref = (CheckBoxPreference) prefSet.findPreference(PULSE_PREF); 
-
167:	mDefaultPref = (ApplicationLightPreference) prefSet.findPreference(DEFAULT_PREF); 
-
173:	mCustomEnabledPref = (CheckBoxPreference) prefSet.findPreference(CUSTOM_PREF); 
-
179:	PreferenceGroup phonePrefs = (PreferenceGroup) prefSet.findPreference("phone_list"); 
-
185:	prefSet.removePreference(phonePrefs); 
-
187:	mCallPref = (ApplicationLightPreference) prefSet.findPreference(MISSED_CALL_PREF); 
-
192:	mVoicemailPref = (ApplicationLightPreference) prefSet.findPreference(VOICEMAIL_PREF); 
-
199:	mApplicationPrefList = (PreferenceGroup) prefSet.findPreference("applications_list"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getContext, findPreference
19:	mContext = prefSet.getContext(); 
20:	mEdit = (EditTextPreference)prefSet.findPreference(checkBoxKey); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getContext, findPreference
19:	mContext = prefSet.getContext(); 
20:	mColor = (ColorPickerPreference)prefSet.findPreference(checkBoxKey); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getContext, findPreference
18:	mContext = prefSet.getContext(); 
19:	mList = (ListPreference)prefSet.findPreference(checkBoxKey); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference, removePreference
106:	Preference preference = parentPref.findPreference(prefKey); 
-
116:	parentPref.removePreference(preference); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getContext, findPreference
17:	mContext = prefSet.getContext(); 
18:	mCheckBox = (CheckBoxPreference)prefSet.findPreference(checkBoxKey); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference, removePreference
102:	Preference preference = parentPref.findPreference(prefKey); 
-
112:	parentPref.removePreference(preference); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setEnabled
153:	mStyle.setEnabled(value); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSharedPreferences, findPreference
105:	SharedPreferences sp = pfs.getSharedPreferences(); 
106:	Preference pref = pfs.findPreference(fieldName); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setEnabled
535:	screen.setEnabled(false); 
536:	WebStorage.getInstance().getOrigins(new ValueCallback<Map>() { 
-
544:	GeolocationPermissions.getInstance().getOrigins(new ValueCallback<Set<String> >() { 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addPreference, removePreference
80:	mGroup.addPreference(pref); 
-
86:	mGroup.removePreference(pref); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addPreference
329:	mSipListContainer.addPreference(pref); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addPreference, getPreferenceCount
447:	pref.setKey(mPreferenceScreen.getPreferenceCount()+""); 
-
453:	mPreferenceScreen.addPreference(pref); 
Full Snippet Info
4
CodeRank
Related Android PreferenceGroup Questions & Answers:
See Code Examples for Android PreferenceGroup Methods: