Code example for SharedPreferences

Methods: getBoolean

0
		} 
 
	} 
 
	public boolean legacyHintsWereDisplayed() { 
		return mPrefs.getBoolean("hint_2131099727", false) &&
				mPrefs.getBoolean("hint_2131099730", false) &&
				mPrefs.getBoolean("hint_2131099726", false) &&
				mPrefs.getBoolean("hint_2131099729", false) &&
				mPrefs.getBoolean("hint_2131099728", false);
	} 
 
	public void resetOneTimeHints() { 
		Editor editor = mPrefs.edit();
		editor.clear();
		editor.commit();
	} 
 
	/** 
	 * This should be called when activity is paused. 
	 */