Prabin Kumar Das Prabin Kumar Das - 1 month ago 6
Android Question

Run service after killing from background in all android devices

I want a service to run always in background so that I can receive notifications always, also after removing the app from task manager by swipping out

Answer

When you remove app from task manager it ends process and your service is running in that process. You have to run service in different process. you can do it in manifest file

<service 
    . . .
         android:process="string" >
</service>