lschlessinger
lschlessinger

Reputation: 1954

How to get appVersion on current device using Parse API in Android

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

Answers (2)

lschlessinger
lschlessinger

Reputation: 1954

This query gets the appVersion currently installed on the device using Parse.

ParseInstallation.getCurrentInstallation().getString("appVersion")

Upvotes: 1

CanDroid
CanDroid

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

Related Questions