[android-developers] Re: get version from apk

2009-08-17 Thread engin
thanks hackborn it works. On Aug 17, 8:49 pm, Dianne Hackborn wrote: > If you want this from the desktop, use "aapt dump badging ". > > On Mon, Aug 17, 2009 at 7:24 AM, Greivin Lopez wrote: > > > > > > > > > Hi, you could use PackageInfo class to retrieve some information from > > Manifest.xml.

[android-developers] Re: get version from apk

2009-08-17 Thread Dianne Hackborn
If you want this from the desktop, use "aapt dump badging ". On Mon, Aug 17, 2009 at 7:24 AM, Greivin Lopez wrote: > > Hi, you could use PackageInfo class to retrieve some information from > Manifest.xml. > > Try to use this code: >/** > * Gets the software version retrieved from the Mani

[android-developers] Re: get version from apk

2009-08-17 Thread Greivin Lopez
Hi, you could use PackageInfo class to retrieve some information from Manifest.xml. Try to use this code: /** * Gets the software version retrieved from the Manifest. */ private String getSoftwareVersion() { try { PackageInfo packageInfo = getPackageManag