Imagine this scenario: I have a Fragment
in a Pager
. I try to switch to other apps, so that the Activity
owning my pager (and my fragm
Take a look at this question: Why implement onDestroy() if it is not guaranteed to be called?
Basically, onDestroy() is only guaranteed to be called if you call finish(). Otherwise, onDestroy() may not be called until the system deems it necessary. You might want to look at putting your "closing" logic in the onPause() or onStop() instead.