好吧,我在 Play 商店中的一个应用程序有一个BOOT_COMPLETED
接收器,并且在 S4 之前它从未出现任何问题,我收到了多封来自 S4 用户的电子邮件,说该应用程序无法正常工作,并且经过一些故障排除后BOOT_COMPLETED
接收器没有被调用。
这里有谁知道如何为这个特定设备解决这个问题?
这是它的主要代码:
public class BootCompletedIntentReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
...
...
//ALL MY CODE IS HERE
...
...
}
}
}
显现 :
<receiver android:name=".BootCompletedIntentReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
当然我有正确的权限:
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />