-
- public String getString(String key, String def) {
- return prefs.getString(key, def);
- }
-
- public void putBoolean(String key, boolean value) {
- editor.putBoolean(key, value);
- }
-
- public void putDouble(String key, double value) {
- editor.putFloat(key, (float)value);
- }
-
- public void putInt(String key, int value) {
- editor.putInt(key, value);
- }
-
- public void putString(String key, String value) {
- editor.putString(key, value);
- }
-
- public void remove(String key) {
- editor.remove(key);
- }
-
- public void flush() {
- editor.apply();
- }
-