update preferences values after changing them programatically
问题 i've got a simple PreferenceActivity. in my activity im using the values stored in those keys. through getDefaultSharedPreferences and getBoolean("somekey") if i now change the preference associated with "somekey", everything works fine and the getBoolean returns the right value. but if i set the value "somekey" to another value programatically, via Preferences.Editor the settings view doesn't update to the new value! like this: pref_edit.putBoolean("somekey", true); pref_edit.commit(); if