Android

SharedPreferences


With SharedPreferences key/value - pairs can be persisted durable.

// read preferences:
SharedPreferences pref = Context.getSharedPreferences("MyApplication", MODE_PRIVATE);
boolean showHelp = pref.getBoolean("showHelp", true);
 
// save preferences:
SharedPreferences.Editor editor = pref.edit();
editor.putBoolean("showHelp", true);
editor.commit(); // Important!

Eigene Werkzeuge
Werkzeuge

gratis Counter by GOWEB
seit 9.10.2007