Code example for SharedPreferences

Methods: getLong

0
		return sharedPrefs.getInt(key, 0);
	} 
 
	@Override 
	public long getLong (String key) {
		return sharedPrefs.getLong(key, 0);
	} 
 
	@Override 
	public float getFloat (String key) {
		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);