Code example for SharedPreferences.Editor: Saving app preferences

Methods: commit, putFloat

0
	} 
 
	public void setFloat(String key, float value)
	{ 
		// TODO Auto-generated method stub 
		edit.putFloat(key, value);
		edit.commit();
	} 
 
	public void setDouble(String key, double value)
	{ 
		// TODO Auto-generated method stub 
		setString(key, String.valueOf(value));
	} 
 
	public void setString(int resID, String value)
	{ 
		// TODO Auto-generated method stub 
		setString(this.mContext.getString(resID), value);
 
	}