Service stop doing its job after removing app from recent apps list

1.2k views Asked by At

I have created an android service that extends from Service class, as explained in the example here http://developer.android.com/guide/components/services.html. The Service has a broadcast receiver for the bluetooth state, so I can perform actions when turning on/off bluetooth and create notifications.

It works pretty well even if I go to the home screen and use other apps. But if I remove the application from the recent apps list, I stop getting logs and the notifications are no longer created. However, in the system settings I still can see the service is running.

How can I make the service to keep performing its job even after removing the app from the recent app list?

Thank you in advance for your help.

0

There are 0 answers