多个广播接收机合法的机器人? [英] are multiple broadcast receivers legal in android?
问题描述
这是真的吗?
只有一个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.
<一个href="http://$c$c.google.com/apis/analytics/docs/mobile/android.html#google-play-tracking">http://$c$c.google.com/apis/analytics/docs/mobile/android.html#google-play-tracking
有清单文件中没有提及本作&LT;接收器/&GT;
There is no mention of this in the manifest documentation for <receiver/>
<一个href="http://developer.android.com/guide/topics/manifest/receiver-element.html">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.
这篇关于多个广播接收机合法的机器人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!