[英]How to check the Google Play store app version
I am trying out the In-App Billing V3 from Google play. 我正在尝试Google Play的应用内结算V3。 In the document below mentioned guidelines were given.
在下面的文档中,给出了指南。 I am not sure how to use the method isBillingSupported.
我不确定如何使用isBillingSupported方法。 Could you point me to any sample code.
您能否指出我任何示例代码。
You can check the version of the GooglePlayStore app in your device like this: 您可以通过以下方式检查设备中GooglePlayStore应用的版本:
PackageManager mPm = getPackageManager();
try{
PackageInfo info = mPm.getPackageInfo("com.android.vending", PackageManager.GET_META_DATA);
int versionCode = info.versionCode;
String versionName = info.versionName;
}
catch( PackageManager.NameNotFoundException e) {
// Play Store not installed
}
I don't know how to send the isBillingSupported
request, but I found this example on GitHub . 我不知道如何发送
isBillingSupported
请求,但是我在GitHub上找到了这个示例 。 I think it is what you are looking for. 我认为这就是您要寻找的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.