Reputation: 1954
What is the simplest way to retrieve the appVersion
in the Installation
class for the current user in Android using Parse?
Upvotes: 0
Views: 587
Reputation: 1954
This query gets the appVersion
currently installed on the device using Parse.
ParseInstallation.getCurrentInstallation().getString("appVersion")
Upvotes: 1
Reputation: 643
You can try it. I used it in my apps:
PackageInfo pinfo = getPackageManager().getPackageInfo(getPackageName(), 0);
int versionNumber = pinfo.versionCode;
String versionName = pinfo.versionName;
Best way to retrieve app Version Number and app Version Name.
Upvotes: 0