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.

enter image description here

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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -