Android Activity Lifecycle

What is called first when activity is restored? onRestoreInstanceState or onActivityResult ?

+6
source share
1 answer

In my experience, the flow should be

 onCreate onStart onRestoreInstanceState onActivityResult onResume 

So, onActivityResult is called AFTER onRestoreInstanceState .

Here and here is a sample code that clearly indicates your doubts.

+15
source

Source: https://habr.com/ru/post/900365/


All Articles