该文件对BroadcastReceiver.onReceive()包含该注意:
BroadcastReceiver.onReceive()
registerReceiver(BroadcastReceiver, IntentFilter)应用程序清单中和应用程序清单中使用的Intent过滤器不保证是独占的.它们提示操作系统如何找到合适的收件人.发件人可以强制传递给特定收件人,绕过过滤器解析.因此,onReceive()实现应仅响应已知操作,忽略它们可能收到的任何意外Intent.
registerReceiver(BroadcastReceiver, IntentFilter)