android - 如何知道用户是否已从 google play 更新 Android 应用程序

标签 android google-play

在我的 android 应用程序中,我想知道用户已经从 google play 更新了应用程序或仍在使用旧版本有什么办法可以解决这个问题请告诉我

最佳答案

要检查用户的当前版本,您需要知道用户的版本。

为此,

send current version as a parameter in webservice and it will return which is the current version.

PackageManager manager = context.getPackageManager();
PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0);
string version = info.versionName;

查看此链接以获取 version code

关于android - 如何知道用户是否已从 google play 更新 Android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34715457/

相关文章:

java - 类的另一个对象的行为不同,JavaSource_Calendar 类

android - 多于两行时如何纠正 ConstraintLayout TextView 重叠

android - 安卓市场可以换图标吗?

android ListView 是空的 Logcat 什么都不显示

java - Android 应用程序-将对象作为额外 Intent 传递与使用公共(public)成员变量

google-play - 突然无法在 google play 控制台中添加应用产品(请检查下面的列表是否有问题。)

android - 根据新的 SMS 许可政策,在 Google Play 中发布具有 SMS 警报的紧急应用程序需要进行哪些更改

android - 禁用托管 Google Play - 再次公开应用

android - 安卓市场商户账号

java - 在android中绘制图像