So I have my main activity that has some views and I have an activity that has the preferences.
I want to, when the activity of the preferences is destroyed, to recreate my main activity, because some views depend on the preferences.
I don’t see a way to do this.
Thanks.
Check what’s changed in
onResume()of your mainActivity. Then, based on whatever your logic is, set thecontentViewto the appropriateViewsor manipulate whateverViewsyou need to.