android - Handle exit application from Task Manager -
as know samsung, htc have custom task manager menu below. menu can popup long press home button. if application working in background , if close task manager, can not handle it. activity ondestroy method not invoked.
unfortunately there isn't answer handling situation. if app force-killed, ondestroy method isn't called. according documentation
note: not count on method being called place saving data! example, if activity editing data in content provider, edits should committed in either onpause() or onsaveinstancestate(bundle), not here.
if can, clean in onpause() method. in order user screen kill app, has have been backgrounded , onpause() called. (see documentation)
it looks you're in similar situation question being asked in thread - https://stackoverflow.com/a/3856300/413254
Comments
Post a Comment