If Fragment and activity is running and activity is destroyed, what is the effect on the fragment?

Options
- Fragment is destroyed
- Fragment runs as it is
- Fragment goes in idle state
- none of these


CORRECT ANSWER : Fragment is destroyed

Discussion Board
Explanation-

To create a fragment, there is need to extend the fragment class and implement several life cycle callback method. The life cycle activity is paused all the fragments in it are paused . Similarly, if an activity is destroyed then all its fragment are destroyed.

Sapna Ambadkar 03-15-2017 12:40 AM

android

how we can connect two app in cloud storage??


harshad 06-24-2016 01:05 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement