Restart the service even if app is force-stopped and Keep running service in background even after closing the app How?

前端 未结 8 589
陌清茗
陌清茗 2020-11-30 02:24

I am trying to run a service in the background. What my app does is when user checks checkbox then service starts and when it is unchecked service is stopped. Which is worki

8条回答
  •  感动是毒
    2020-11-30 02:41

    I think this link will help you.
    Disable force stop button in manage application

    Its disable the Force Stop button in Package Installer setting so, no one can stop your application.

提交回复
热议问题