I am sharing some useful information for android developer through this blog."Life is not fair - get used to it".
Tuesday, November 20, 2012
get apk version name and version code in android
String pakageName;
PackageInfo packageInfo = getPackageManager().getPackageInfo(pakageName, 0); int vcode= packageInfo.versionCode; String vname= packageInfo.versionName;
you can use getPackageName() function if you want to get default package info;
No comments:
Post a Comment