Android FAQ
Search...
Monday, April 2, 2012
How to find the Version of the app in Android?
PackageManager pm = getPackageManager();
PackageInfo packageInfo = pm.getPackageInfo(this.getPackageName(), 0);
System.out.println("Version Name :"+packageInfo.versionName);
System.out.println("Version Code :"+packageInfo.versionCode);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment