Activity life cycle: What to do in onRestart() of an activity?
load your xml layout file
if any UI changes happened while it is in invisible state, updated it in this function
if any UI changes happened while it is in running state, updated it in this function
Used to reload all UI resources in case of activity recreation which happens in case of configuration changes.
onRestart() will be called, after onStop(). when onStop is called it means your activity is in invisible state, during that time if any ui changes happens which is not visible to user, update all those changes to user in onRestart()
Back To Top