Friday, November 15, 2019

android - How do I get my application Version




Can anyone tell me how to get applcation version in Android?


Answer



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.


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...