1.如果手机root过的话,直接将app放到/sytem/app中升级为系统app。
2.设置application中的persistence属性为true
3.将service设置为前台service
如何让android的service一直后台运行
最新推荐文章于 2022-12-29 14:43:08 发布
1.如果手机root过的话,直接将app放到/sytem/app中升级为系统app。
2.设置application中的persistence属性为true
3.将service设置为前台service