gpt4 book ai didi

android - ADMManifest.checkManifestAuthoredProperly() 实际上做了什么?

转载 作者:行者123 更新时间:2023-11-29 21:05:25 25 4
gpt4 key购买 nike

Amazon Device Messaging 有一个静态方法,用于确保正确设置 AndroidManifest.xml 文件以允许发送和接收 ADM 消息。这是一个无效的方法。这个方法实际上做了什么?如果未正确设置 list ,会发生什么情况?

最佳答案

来自Amazon developer forum :

The manifest check method queries Android's package manager to ensure you have the correct entries in your manifest (permissions, exported receiver). It also checks that you have an API key embedded, but does not check if it is valid. If any of these checks fail, it throws an IllegalStateException.

Also worth nothing: the manifest checker is intended to be used during ADM integration to quickly find issues in your manifest, and should not be put into the critical path of your application

关于android - ADMManifest.checkManifestAuthoredProperly() 实际上做了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24749188/

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