首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Android授权示例返回代码3,这是什么意思?

Android授权示例返回代码3,这是什么意思?
EN

Stack Overflow用户
提问于 2012-08-08 17:45:07
回答 1查看 9.7K关注 0票数 18

我试过授权样例。上面写着“应用程序error=3”。我在developer.android.com上找到了许可响应代码表,但是数字3与上面的列表是如何对应的?这段代码是什么意思?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-08-09 05:51:12

查看源代码com.android.vending.licensing.LicenseValidator

/**
 * Contains data related to a licensing request and methods to verify
 * and process the response.
 */
class LicenseValidator {
  private static final String TAG = "LicenseValidator";

  // Server response codes.
  private static final int LICENSED = 0x0;
  private static final int NOT_LICENSED = 0x1;
  private static final int LICENSED_OLD_KEY = 0x2;
  private static final int ERROR_NOT_MARKET_MANAGED = 0x3;
  private static final int ERROR_SERVER_FAILURE = 0x4;
  private static final int ERROR_OVER_QUOTA = 0x5;

  private static final int ERROR_CONTACTING_SERVER = 0x101;
  private static final int ERROR_INVALID_PACKAGE_NAME = 0x102;
  private static final int ERROR_NON_MATCHING_UID = 0x103;

  ... ...

"application error=3“表示ERROR_NOT_MARKET_MANAGED,请查看answer here以了解如何处理它。

票数 36
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11861834

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档