nileshbirhade nileshbirhade - 8 months ago 13
Android Question

How do i get my application Version

can anyone tell me How to get applcation version in android ?


This page has a tips on how to do it from java:

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

Also, this link has official information on how to properly set up your application versioning.