Android: Intentservice Used In Ondestroy()
I am trying to delete a especific registry in a database once the user quits the app. For that issue I call an IntentService whichs runs theorically when the application id destroy
Solution 1:
Actually onDestroy
method can not be called.
onDestroy
is called only when system is low on resources(memory, cpu time and so on) and makes a decision to kill your activity/application or when somebody calls finish() on your activity.
If you want to release some resources, you should do that inonPause()
instead.
Post a Comment for "Android: Intentservice Used In Ondestroy()"