Posts

Showing posts with the label onresume

Refresh(recreate) the activities in back stack when change locale at run time

Refresh(recreate) the activities in back stack when change locale at run time I have an Activity say ActivityMain from this activity I moved to another activity called ActivitySettings and in settings activity I'm changing the App locale by clicking on a button, and using recreate I achieved the change I need in current activity but when I press back my `ActivityMain' will resume but locale is not updated. ActivityMain ActivitySettings Can some one tell me how to 'Recreate' backstack activities? what will be the correct approach. I can't call recreate on refresh as it will be infinite loop Look at here developer.android.com/training/basics/intents/result – VolkanSahin45 2 days ago 1 Answer 1 In each Activity's onCreate() you...