If A invokes activity B through Intent, but A does not call the finish () method, then A will be paused if B is transparent or translucent and stopped if B is opaque. I'm right?
Yes true
If A Activity contains Fragment F, then if A goes into Pause state, then F goes into pause state, and if A is in a stop state, then F will also be in a stop state. I'm right?
Yes, right
If A calls activity B, and B is transparent, then A will be paused, and F too. If B ends the call (), then A will return to the resume state, but what will happen to F? will he come to resume the pause? If this is how and what steps, because I did not see a direct link in the fragmentation life cycle that points onPause () to onResume () directly, how Activity can do it.
What you understand is true, even in this scenario, the fragment will be moved from onPause to onResume in the same way as in the action. But, unfortunately, this is not in the Android developer. Perhaps this is due to the fact that they wanted to avoid complex diagrams that could create more confusion.
user1923551
source share