سؤال

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