Wow thats pretty cool Mark. I thought the PackageManager was limited
to providing info about the app that you are calling it from.

Thanks for the tip.


On Tue, Sep 1, 2009 at 11:49 AM, Mark Murphy<[email protected]> wrote:
>
> Sean Hodges wrote:
>> As far as I'm aware of, there isn't a way to check the version number
>> of an app from the base Android interface.
>
> Sure there is!
>
> PackageManager has getPackageInfo(), and PackageInfo has versionCode and
> versionName, as encoded in the manifest. You need to know the package
> name for which you want the version information, but it's all right there.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Need help for your Android OSS project? http://wiki.andmob.org/hado
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to