nms*_*nms 17 android android-lvl
我试过许可样品.它说"应用程序错误= 3".我在developer.android.com上找到了许可响应代码表,但是3号对应于上面的列表?那段代码是什么意思?
yor*_*rkw 35
查看源代码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;
... ...
Run Code Online (Sandbox Code Playgroud)
"应用程序错误= 3"表示ERROR_NOT_MARKET_MANAGED,请在此处查看答案以了解如何处理它.
| 归档时间: |
|
| 查看次数: |
9249 次 |
| 最近记录: |