[android-developers] Re: Getting the Manifest Version Code
PackageInfo pInfo = null;
try {
pInfo = getPackageManager().getPackageInfo("com.beanie.test",
PackageManager.GET_META_DATA);
} catch (NameNotFoundException e) {
e.printStackTrace();
}
System.out.println(pInfo.versionCode);
Kumar Bibek
On Jan 24, 8:48 am, dapaintballer331 <dapaintballer...@gmail.com>
wrote:
> How do you retrieve the current version code of an app's manifest?
> I don't need to access another application, I'm talking about My app
> accessing its own version code.
>
> Thanks
> -Brandon
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home