I think you can control the change, since it is saved only after calling the commit function
SharedPreferences prefs = getSharedPreferences("MyPreferences", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean("somevalue", true);
editor.commit();
You can view the value with a toast or something else before you name the commit. or yes / no.
source
share