// début d'une transaction SharedPreferences.Editor editor = prefs.edit(); // modifications editor.putBoolean("prefs_online", false); editor.putInt("prefs_nbmax", 20); // fin de la transaction editor.commit();