Issue
Can anyone tell me how to get the application version in Android?
Solution
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.
Answered By - Merlyn Morgan-Graham
Answer Checked By - Mary Flores (JavaFixing Volunteer)