Code example for SharedPreferences

Methods: getFloat

0
	} 
	public int getAge() { 
		return mPreferences.getInt(Keys.AGE, 0);
	} 
	public float getBankBalance() { 
		return mPreferences.getFloat(Keys.BANK_BALANCE, 100);
	} 
	public boolean getSubscribed() { 
		return mPreferences.getBoolean(Keys.SUBSCRIBED, true);
	} 
 
	public SharedPreferences getSharedPreferences() {
		return mPreferences;
	} 
 
	public void registerOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener) {
		mPreferences.registerOnSharedPreferenceChangeListener(listener);
	} 
 
	public void unregisterOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener) {
		mPreferences.unregisterOnSharedPreferenceChangeListener(listener);