In my app, some settings can possibly be changed while the PreferenceActivity
is not open, and an issue I'm running into is that addPreferencesFromResource
is called in onCreate
, so say, I open the PreferenceActivity
, then go to another screen from there, then do something that changes the settings, then hit the back key to go back to the PreferenceActivity
, then certain settings have not changed on the layout.
So, how could I re-load all the Preferences
every time onResume
(or onStart()
) is called without duplicating the layout?