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

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

Android PreferenceManager examples from Open Source projects
This code example shows how to use the following methods: getBroadcast, getSystemService, getDefaultSharedPreferences
50:	SignalingSocket signalingSocket = new SignalingSocket(context); 
-
55:	filter.serializeToFile(context); 
-
68:	SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); 
69:	AlarmManager am               = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); 
-
71:	PendingIntent sender          = PendingIntent.getBroadcast(context, 0, intent, 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: startService, getDefaultSharedPreferences
26:	SharedPreferences prefs= 
-
29:	if (SyncService.isSyncNeeded(context, prefs)) { 
30:	context.startService(new Intent(context, SyncService.class)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: openFileOutput, getDefaultSharedPreferences
101:	fs = context.openFileOutput(normalized, Context.MODE_APPEND); 
-
103:	fs = context.openFileOutput(normalized, Context.MODE_PRIVATE); 
-
169:	return PreferenceManager.getDefaultSharedPreferences(this.context) 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getWindow, getWindowManager, getDefaultSharedPreferences
35:	SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(activity); 
-
52:	Display display = activity.getWindowManager().getDefaultDisplay(); 
-
73:	activity.getWindow().setBackgroundDrawable(mThemeDrawable); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: startService, getDefaultSharedPreferences
26:	SharedPreferences prefs= 
-
29:	if (SyncService.isSyncNeeded(context, prefs)) { 
30:	context.startService(new Intent(context, SyncService.class)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getService, getSystemService, getDefaultSharedPreferences
49:	alarmSender = PendingIntent.getService(context, 0, new Intent(context, AutoRefreshService.class), PendingIntent.FLAG_UPDATE_CURRENT); 
50:	SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 
-
53:	AlarmManager am = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); 
-
69:	SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getApplicationContext, getDefaultSharedPreferences
15:	.getDefaultSharedPreferences(context.getApplicationContext()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getBroadcast, getSystemService, getDefaultSharedPreferences
14:	AlarmManager mgr=(AlarmManager)ctxt.getSystemService(Context.ALARM_SERVICE); 
-
16:	SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(ctxt); 
-
42:	return(PendingIntent.getBroadcast(ctxt, 0, i, 0)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDefaultSharedPreferences
43:	super(context, "app-preferences"); 
-
45:	preferences = PreferenceManager.getDefaultSharedPreferences(context); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: startActivity, getDefaultSharedPreferences
48:	SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); 
-
53:	context.startActivity(activityIntent); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDefaultSharedPreferences
60:	super(context, "app-preferences-alpha"); 
-
62:	preferences = PreferenceManager.getDefaultSharedPreferences(context); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDefaultSharedPreferences
139:	PreferenceManager.getDefaultSharedPreferences(context); 
140:	AccountTypeManager.getInstance(context); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getContentResolver, getFilesDir, getDefaultSharedPreferences
98:	mContentResolver = context.getContentResolver(); 
99:	mPrefs = PreferenceManager.getDefaultSharedPreferences(context); 
-
102:	sLockPatternFilename = context.getFilesDir() + LOCK_PATTERN_FILE; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDefaultSharedPreferences
182:	SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(mContext); 
-
191:	ProxySettings.setProxy(mContext, "127.0.0.1", port); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getApplicationContext, getDefaultSharedPreferences
53:	this.preferences = PreferenceManager.getDefaultSharedPreferences(context); 
54:	this.resources = context.getApplicationContext().getResources(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getString, getDefaultSharedPreferences
14:	return contains(context, context.getString(resId)); 
-
18:	SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getApplicationContext, getDefaultSharedPreferences
66:	return PreferenceManager.getDefaultSharedPreferences(context.getApplicationContext()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultSharedPreferences
178:	super.onAttach(activity); 
179:	mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: createPreferenceScreen
41:	setPreferenceScreen(getPreferenceManager().createPreferenceScreen(context)); 
42:	mSettings.init(context, getPreferenceScreen()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: findPreference
212:	return mPreferenceManager.findPreference(key); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference
268:	return mPreferenceManager.findPreference(key); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference
78:	Preference pref = preferenceMgr.findPreference(prefKey); 
-
80:	preferenceMgr.findPreference(prefKey).setEnabled(isEnabled); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: findPreference
68:	return preferenceManager.findPreference(key); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: findPreference
287:	return mPreferenceManager.findPreference(key); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: findPreference
253:	return mPreferenceManager.findPreference(key); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: findPreference
258:	return mPreferenceManager.findPreference(key); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: findPreference
244:	return mPreferenceManager.findPreference(key); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: getSharedPreferences
231:	sp = prefMgr.getSharedPreferences(); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: getSharedPreferences
158:	i.putExtra(TOGGLE_TEXT_ON_COLOR, (Integer) prefMgr.getSharedPreferences().getInt(TOGGLE_TEXT_ON_COLOR, 0xffffffff)); 
159:	i.putExtra(TOGGLE_TEXT_OFF_COLOR, (Integer) prefMgr.getSharedPreferences().getInt(TOGGLE_TEXT_OFF_COLOR, 0xff555555)); 
Full Snippet Info
3
CodeRank
Related Android PreferenceManager Questions & Answers:
See Code Examples for Android PreferenceManager Methods: