Android activity lifecycle
Asked Answered
S

1

6

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

Smarmy answered 30/10, 2011 at 9:11 Comment(2)
Check this answer related to activity life cycle, this may help you i guess!Wittenburg
The problem was solved few months ago!Smarmy
K
15

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.

Ketene answered 30/10, 2011 at 9:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.