Android activity lifecycle

2.8k views Asked by At

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

1

There are 1 answers

0
Pankaj Kumar On BEST ANSWER

From my experience, flow must be

onCreate
onStart
onRestoreInstanceState
onActivityResult
onResume

So, onActivityResult is called AFTER the onRestoreInstanceState.

Here and here are sample code, which make clear about your doubt.