xxv / android-lifecycle

A diagram of the Android Activity / Fragment lifecycle
5.26k stars 681 forks source link

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

Open aicaprio opened 9 years ago

lin1987www commented 9 years ago

You got it !

isanjosgon commented 8 years ago

Yep :(

lin1987www commented 8 years ago

I find the answer will happen some Situation!

Depending some condition

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

isanjosgon commented 8 years ago

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

lin1987www commented 8 years ago

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

plusend commented 7 years ago

Waiting for update about this issue.

houssemzaier commented 7 years ago

A very common fault ... thanks for catching that