开发者

make my service never stop

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜