Service Stops When Clearing Data
I created a notification service which communicate with the local database When i press Settings Clear Data button while the application is running, the service also stops. but i
Solution 1:
Replying to ::
I'm using IntentService to create the background service. I'm trying to restart service when this happens. I found out that returning START_STICKY from onStartCommand the service can be restarted. but in IntentService , it says not to overide this method.
They have overridden that method here-
Post a Comment for "Service Stops When Clearing Data"