Sebastian Nowak
Sebastian Nowak

Reputation: 5717

Android activity lifecycle

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

Upvotes: 6

Views: 2884

Answers (1)

Pankaj Kumar
Pankaj Kumar

Reputation: 82938

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.

Upvotes: 15

Related Questions