Code example for SharedPreferences

Methods: getString

0
		return sharedPrefs.getFloat(key, 0);
	} 
 
	@Override 
	public String getString (String key) {
		return sharedPrefs.getString(key, "");
	} 
 
	@Override 
	public boolean getBoolean (String key, boolean defValue) {
		return sharedPrefs.getBoolean(key, defValue);
	} 
 
	@Override 
	public int getInteger (String key, int defValue) {
		return sharedPrefs.getInt(key, defValue);
	} 
 
	@Override 
	public long getLong (String key, long defValue) {
		return sharedPrefs.getLong(key, defValue);