I\'m trying to keep service running continously until user close app.
I\'m using startService() method from onCreate() method of my main activi
startService()
onCreate()
Set the below attribute in your service tag in the manifest file,
adding this will call the ondestroy() of the service when the task is removed (app closed from recent apps list).
ondestroy()