Killing android application from task manager kills services started by app

前端 未结 4 1119
遥遥无期
遥遥无期 2021-01-12 18:27

My application has one activity which starts two services but does not bind them. If I select return button to exit application (I cannot see it in task manager), both of th

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 19:07

    That is the intended behavior of Task Managers (and force stop in ManageApplication). What good would stopping an application do if it left running the background work that the application was doing?

    There is no way for you to prevent the user from killing your service on a stock version of Android OS

提交回复
热议问题