I was struggling on the same problem, and the finish/restart activity solution was not satisfying because I messes the "back button history" : when the user uses back, then the "previous activity" to be restored is not the activity that opened the preferences in the first place, but the preferences itself ! It is understandable because after all, we did actually call the PreferencesActivity from the PreferencesActivity...
*The solution I use is quite simple : onCreate(null);* I simply tried calling onCreate, hoping that it would perform its initialization routine once more, and it did ! Hope it can help someone ;-) Le jeudi 2 octobre 2008 13:11:32 UTC+2, Amos a écrit : > > I have a PreferenceActivity inflated from xml. One of the preferences > launches an intent which opens an activity that clears all the > preferences and resets them to the default values. > My problem is that when this "restore defaults" activity returns, the > previous preference values still appear on the screen. If I exit the > preference activity and then reopen it, the updated preference values > appear. > This seems like a refresh issue. Is there a way I can tell the > PreferenceActivity to refresh its values? (I made sure I am comitting > all my preference changes) > > Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

