I was following these four topics Creating a Fragment, Handling the Fragment Lifecycle , Managing the Activity Lifecycle and Pausing and Resuming an Activity. So I am in a little doubt about this.
My question is
- If A
Activity
call B Activity
through Intent
but A does not call finish()
method then A will be in Pause
state if B is Transparent
or SemiTransparent
and in Stop
state if B is Opaque
. Am I right?
- If A
Activity
contains Fragment
F then if A will go to Pause
state then F will go to Pause
state and if A will be in Stop
state then F will be in Stop
state too. Am I right?
- If A calls B
Activity
and B is Transparent
then A will be in Pause
state and F will too. If B call finish()
then A will come to Resume
state but what will happen to F? will it come to resume from pause? If it is then how and what steps because I have not seen any direct link in Fragment
life cycle which indicates onPause()
to onResume()
directly as Activity can do.
Hope I am able to ask what I want. Sorry for my bad Englsh.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…