简体   繁体   English

如何检查Google Play商店应用版本

[英]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.

相关问题 如何从 google play store 获取应用市场版本信息? - How to get app market version information from google play store? 如何在Google Play商店中向精简版应用显示推荐? - How to show recommendation to lite version app in Google Play Store? 如何在firebase应用中查看google play服务的版本 - How to check version of google play services in firebase app Android 获取 Google Play Store 应用版本 - Android get Google Play Store app version 查询 google play 商店的应用程序版本? - query the google play store for the version of an app? Google Play商店许可检查-新应用 - google play store licensing check — new app 如何从我的应用程序打开Goog​​le Play商店应用程序以在Play商店中安装我的应用程序的最新版本 - How to open Google Play Store App from my app to install the latest version of my app available on play store 如何从 Google Play 商店或 google 控制台找到现有应用程序的 Android 的先前版本? - How to Find the Previous version of Android of an existing App from the Google Play Store or google console? 如何以编程方式在Play商店上验证应用版本? - how to verify app version on play store programmatically? 如何获得Play商店的应用程序版本 - How get the app version on the play store
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM