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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top