android-lifecycle icon indicating copy to clipboard operation
android-lifecycle copied to clipboard

onActivityResult() actually is called before onRestart() then onStart()

Open aicaprio opened this issue 10 years ago • 7 comments

aicaprio avatar Mar 03 '15 03:03 aicaprio

You got it !

lin1987www avatar May 15 '15 11:05 lin1987www

Yep :(

isanjosgon avatar Oct 22 '15 10:10 isanjosgon

I find the answer will happen some Situation!

Depending some condition

https://github.com/lin1987www/FragmentBuilder/raw/master/images/FragmentActivityLifecycle.png

lin1987www avatar Oct 23 '15 07:10 lin1987www

Thanks @lin1987www, your sequence is the correct, see the answer below from an Android Engineer to clarify this issue. https://groups.google.com/d/msg/android-developers/3epIML7fjGw/J46YefbBlGEJ

isanjosgon avatar Oct 23 '15 07:10 isanjosgon

I never thought " Why onActivityResult() called before onResume()", Thanks @isanjosgon , I learned something today. :3

lin1987www avatar Oct 23 '15 08:10 lin1987www

Waiting for update about this issue.

plusend avatar Jan 16 '17 14:01 plusend

A very common fault ... thanks for catching that

houssemzaier avatar Feb 02 '17 10:02 houssemzaier