多个广播接收机合法的机器人?多个、接收机、机器人

2023-09-06 02:23:50 作者:山川皆无恙

这是真的吗?

只有一个BroadcastReceiver的类可以根据应用来指定。   如果您需要将两个或两个以上BroadcastReceivers从   不同的软件开发工具包,您将需要创建自己的BroadcastReceiver   将接收所有广播,并调用相应的类   BroadcastReceivers每种类型广播的。

Only one BroadcastReceiver class can be specified per application. Should you need to incorporate two or more BroadcastReceivers from different SDKs, you will need to create your own BroadcastReceiver class that will receive all broadcasts and call the appropriate BroadcastReceivers for each type of Broadcast.

http://$c$c.google.com/apis/analytics/docs/mobile/android.html#google-play-tracking

有清单文件中没有提及本作<接收器/>

There is no mention of this in the manifest documentation for <receiver/>

http://developer.android.com/guide/topics/manifest/receiver-element.html

推荐答案

的引文是来自谷歌的移动分析包中的文件。这可能是谷歌的移动分析软件包不能支持多个的BroadcastReceiver 谷歌的移动分析软件包的广播。

The quoted passage is from the documentation for Google's mobile analytics package. It may be that Google's mobile analytics package cannot support more than one BroadcastReceiver for Google's mobile analytics package's broadcasts.

安卓本身是绝对可以有多个的BroadcastReceiver 每个应用程序。

Android itself can most certainly have more than one BroadcastReceiver per application.