【发布时间】:2020-01-24 07:42:53
【问题描述】:
我有一个应用程序在后台连续运行服务,即使在重新启动设备后也是如此 为此,我使用了以下接收器,
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
在 Android Oreo 之前它运行良好 但在 Android Pie 中,只有在 Phone 解锁后,Service 才会启动。
重启手机后启动服务需要解锁。
重启后不解锁手机启动服务有什么解决办法
【问题讨论】:
标签: android service broadcastreceiver background-service bootcompleted