Code example for SharedPreferences.Editor: Saving app preferences

Methods: clear, commit

0
				mPrefs.getBoolean("hint_2131099728", false);
	} 
 
	public void resetOneTimeHints() { 
		Editor editor = mPrefs.edit();
		editor.clear();
		editor.commit();
	} 
 
	/** 
	 * This should be called when activity is paused. 
	 */ 
	public void pause() { 
		// get rid of WindowLeakedException in logcat 
		if (mHintDialog != null) {
			mHintDialog.cancel();
		} 
	} 
 
	private static class Message { 
		int titleResID;