Hi All,
Am getting Application version name (From manifest) by using
below code,
PackageInfo packageInfo;
try {
packageInfo =
getPackageManager().getPackageInfo(getPackageName(),
0);
String verName = packageInfo.versionName;
int verCode = packageInfo.versionCode;
} catch (NameNotFoundException e) {
e.printStackTrace();
String verName = "Cannot load Version!";
}
If i check in my emulator/device its getting values. but one of
my client test with MDN, its returning 'null' .... :'(
Let me know, If I need to change any thing regarding tht...
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en