When activity is moved to stopped state, then what will happen to the life cy cle of a fragment which is in that activity?

Answer: fragments will be moved to onStop

Description: Since fragments are part of an Activity always, when Activity is moved to stopped state, then automatically fragments in it will be moved to stopped state.

Note: Fragments life cycle will be affected by activity's life cycle.

No comments:

Post a Comment