I want to handle IntentService onStop event. IntentService will receive the Intents, launch a worker thread, and stop the service as appropriate but I have not found onStop method. It has onDestroy()
but 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.
Can I add my code in onStop IntentService time ?