Unterschiede
Hier werden die Unterschiede zwischen der gewählten und der aktuellen Version gezeigt.
android:sharedpreferences 2010/06/10 07:46 | android:sharedpreferences 2020/01/22 20:59 aktuell | ||
---|---|---|---|
Zeile 28: | Zeile 28: | ||
// Preferences speichern: | // Preferences speichern: | ||
- | SharedPreferences.Editor editor = settings.edit(); | + | SharedPreferences.Editor editor = pref.edit(); |
- | editor.putBoolean("MyApplication", true); | + | editor.putBoolean("showHelp", true); |
editor.commit(); // Wichtig! | editor.commit(); // Wichtig! | ||
</code> | </code> |