I have noticed that the onDestroy() method of a fragment gets called multiple times - why would this be? I would expect only 1 call.
onDestroy()
= The final call you receive before your activity is destroyed.
This can happen either because the activity is finishing (someone called finish()
on it, or because the system is temporarily destroying this instance of the activity to save space.
You can distinguish between these two scenarios with the isFinishing()
method.