Modifications to the preferences must go through an SharedPreferences.Editor object to ensure the preference values remain in a consistent state and control ...
developer.android.com