3 ms·
"4. Applications Never, Ever Quit" -- That's really not the case. If you press the "Home" button the app will receive the onPause() event, but if you press the
by metachris 17y ago
"4. Applications Never, Ever Quit" -- That's really not the case. If you press the "Home" button the app will receive the onPause() event, but if you press the "Back" button the app will quit after an onDestroy() event.
- blasdel 17y agoUnless the app uses the back button for something, right?
- haseman 17y agoAfter you press the 'Back' try holding the 'Home' button down for a second. You should still see the application in the list that comes up. Further, after you receive 'onDestroy()' your activity isn't actually unloaded. It just 'could' be unloaded at some point in the future. Good developers will null all their pointers so the GC can clean up....and we're all good developers right?
- metachris 17y agoIf you hold the home button and see a list of apps -- that's the history. Not related to currently running apps. Furthermore, have a look at the Activity lifecycle: http://developer.android.com/guide/topics/fundamentals.html#actlife http://developer.android.com/guide/topics/fundamentals.html#... If your app receives the onDestroy() event, there is no way it will ever recover to a running state.
- deleted 17y ago[deleted]
- haseman 17y agoIn my experience, getting an onDestroy() call doesn't mean your process is about to be terminated/unloaded (this may be different in newer versions?)
- deleted 17y ago[deleted]