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

标签 android android-manifest amazon-device-messaging

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/

相关文章:

SurfaceView 中的 Android 动画角色

android - 关于 Manifest 中的 <uses-sdk> 的警告?

android - 如何指定Android服务标签(android :label for the <service> tag) in AndroidManifest. xml?(RAD Studio,Delphi XE)

android - GrantPermissionCallable : Permission: android. permission.SET_TIME 不能被授予

android - 在 Kindle 设备中创建推送通知时出错?

android - 在 Android 中保持 API key 和 URL 安全的最佳方法?

java - 不幸的是,应用程序已停止,错误为零

android - 使用空参数调用 super.onCreate()?

c# - 发送 httprequest 以接收一些数据

java - 如何在jetty-util-ajax中使用JSON.toString()方法转义Unicode?