在发送广播时,不要给Intent设置任何FLAG_ACTIVITY_相关的flag。
如:
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.sendBroadcast(intent);
这样的话就会 报Can't use FLAG_RECEIVER_BOOT_UPGRADE的错误,并且广播发送失败。。。。。
参考国外的一个网页:
http://stackoverflow.com/questions/5438681/android-error-cant-use-flag-receiver-boot-upgrade-here