Yeah, look for PackageInfo.versionName and PackageInfo.versionCode.
You can get an instance of PackageInfo from
PackageManager.getPackageInfo(), and you can get THAT from your
Activity through getPackageManager().

On Oct 25, 6:14 am, matteoli <[email protected]> wrote:
> I would like to show the current version of my application. Is it
> possible to extract the values "android:versionCode" and
> "android:versionName" from the Manifest with any Java method?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to