gpt4 book ai didi

android - 多个广播接收器在android中合法吗?

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:07:45 25 4
gpt4 key购买 nike

这是真的吗?

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://code.google.com/apis/analytics/docs/mobile/android.html#google-play-tracking

<receiver/> 的 list 文档中没有提到这一点

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

最佳答案

引用的段落来自谷歌移动分析包的文档。可能是 Google 的移动分析包无法支持多个 BroadcastReceiver 用于 Google 的移动分析包的广播。

Android 本身肯定可以为每个应用程序拥有多个 BroadcastReceiver

关于android - 多个广播接收器在android中合法吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8013628/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com