Code example for SharedPreferences.Editor: Saving app preferences

Methods: commit, remove

0
	 * @param persistent_storage_editor 
	 */ 
	public void clearTemporaryData(Editor persistent_storage_editor)
	{ 
		// clear initial values 
		persistent_storage_editor.remove("foursquare_code");
		persistent_storage_editor.remove("foursquare_access_token"); // wipe out old fuck-up from anyone who had to deal with it
		persistent_storage_editor.remove("foursquare_oauth_token"); // clear old unused oauth 1.0 token from systems
		persistent_storage_editor.commit();
	} 
	 
	/** 
	 * createTestUsers 
	 *  
	 * creates any necessary foursquare test users. 
	 */ 
	public OAuthResponse createTestUsers(SharedPreferences persistent_storage) { return new OAuthResponse(); }
}