Why override Activity.onDestroy() if it isn't reliably called?
I'm confused why anyone would ever override Activity.onDestroy() instead of onPause() if according to the documentation : There are situations where the system will simply kill the activity's hosting process without calling this method (or any others) in it, I see much code that overrides onDestroy() despite this warning. Why? Why override Activity.onDestroy() if it isn't reliably called? It's not that it isn't reliably called... it's just that it isn't the only way the Activity can be killed. The Android system might trash your entire process without giving the ActivityManager the chance to