Code example for ContextWrapper

Methods: getSharedPreferences

0
		editor.commit();
	} 
 
	public static final Boolean getBooleanSharedPreference(
			ContextWrapper context, String name, Boolean defaultValue) {
		SharedPreferences customSharedPreference = context
				.getSharedPreferences(MicroLife.class.getName(),
						Activity.MODE_PRIVATE);
		return customSharedPreference.getBoolean(name, defaultValue);
	} 
 
	public static final void setIntegerSharedPreference(ContextWrapper context,
			String name, Integer value) {
		SharedPreferences customSharedPreference = context
				.getSharedPreferences(MicroLife.class.getName(),
						Activity.MODE_PRIVATE);
		setIntegerSharedPreference(customSharedPreference, name, value);
	} 
 
	private static void setIntegerSharedPreference( 
Connect your IDE to all the code out there  Get Codota for Java