开发者

make my service never stop

开发者 https://www.devze.com 2023-04-05 20:35 出处:网络
I am building an application where I need a service which will never 开发者_如何学Gostop like android system services. I can make my service restarted by system using start_not_sticky but there is no

I am building an application where I need a service which will never 开发者_如何学Gostop like android system services. I can make my service restarted by system using start_not_sticky but there is no guarantee that my service will never stop. Does anyone help regrading this issue.


Try running your service as Remote service. This runs as an independent application.

Also, use handlers to schedule the part of the service which needs to be run at regular intervals.

0

精彩评论

暂无评论...
验证码 换一张
取 消