In my Android app, I use SharedPreferences
to let the user manage some settings. Now after a user changes any setting, and returning to the app from the settings page, I want my Views (Fragments) to use the latest values from SharedPreferences.
The changes could include reloading a Custom View to use a color scheme or remove filtering for a List View.
Currently only when the app is restarted, the required changes are applied. I am convinced that there is a way to solve my problem, but I am unable to figure it out.
Assume that I am supporting Android 2.2 and above, so that any newer APIs for this may not be used unless its present inside the Support Library.