我想在我的Android许可证政策中满足LICENSE_OLD_KEY.我打算修改ServerManagedPolicy它,因为它不适合这个,据我所知,它似乎只是寻找Policy.LICENSED或Policy.NOT_LICENSED在processServerResponse方法:
public void processServerResponse(int response, ResponseData rawData) {
// Update retry counter
if (response != Policy.RETRY) {
setRetryCount(0);
} else {
setRetryCount(mRetryCount + 1);
}
if (response == Policy.LICENSED) {
// Update server policy data
Map<String, String> extras = decodeExtras(rawData.extra);
mLastResponse = response;
setValidityTimestamp(extras.get("VT"));
setRetryUntil(extras.get("GT"));
setMaxRetries(extras.get("GR"));
} else if (response == Policy.NOT_LICENSED) {
// Clear out stale policy data
setValidityTimestamp(DEFAULT_VALIDITY_TIMESTAMP);
setRetryUntil(DEFAULT_RETRY_UNTIL);
setMaxRetries(DEFAULT_MAX_RETRIES);
}
setLastResponse(response);
mPreferences.commit();
}
Run Code Online (Sandbox Code Playgroud)
我想知道LICENSE_OLD_KEY的响应代码是什么,因为Policy中不存在:
public static final int LICENSED …Run Code Online (Sandbox Code Playgroud) 我在 Visual Studio 2017 中构建了一个混合应用程序 (Cordova),它在我的本地 Windows 10 机器上构建和运行,没有任何问题。
所以现在我准备生成 .appxupload 文件等。问题是我无法创建应用程序包,因为该选项在 Visual Studio 中被禁用。
我已经尝试过的事情:
有点奇怪,当我点击上传应用程序包时......没有任何反应。
单击Open Developer Account...或Acquire Developer License...打开 Chrome 供我登录,我可以看到我的 Microsoft Developer Dashboard。
保留应用程序名称...同样会在 Chrome 中打开 Microsoft 开发人员仪表板让我保留应用程序名称。我做过。
我已经从这台电脑创建了其他应用程序,并且该选项之前已经可用。现在,当我打开它们并单击Project -> Store 时,我会看到相同的灰色选项。
任何人都可以帮忙吗?我希望这是我错过的一些简单的事情。
谢谢