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