Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
get version from apk
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
engin  
View profile  
 More options Aug 16 2009, 6:30 am
From: engin <enginarsla...@gmail.com>
Date: Sun, 16 Aug 2009 03:30:18 -0700 (PDT)
Local: Sun, Aug 16 2009 6:30 am
Subject: get version from apk
Hi, can I get version from .apk file. I tried to open
androidmanifest.xml but I realized that xml files are destructed when
apk created.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greivin Lopez  
View profile  
 More options Aug 17 2009, 10:24 am
From: Greivin Lopez <greivin.lo...@gmail.com>
Date: Mon, 17 Aug 2009 07:24:08 -0700 (PDT)
Local: Mon, Aug 17 2009 10:24 am
Subject: Re: get version from apk
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 = getPackageManager
().getPackageInfo(getPackageName(), 0);
                return packageInfo.versionName;
        } catch (PackageManager.NameNotFoundException e) {
                Log.e(TAG, "Package name not found", e);
        };
    }

On Aug 16, 4:30 am, engin <enginarsla...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dianne Hackborn  
View profile  
 More options Aug 17 2009, 1:49 pm
From: Dianne Hackborn <hack...@android.com>
Date: Mon, 17 Aug 2009 10:49:21 -0700
Local: Mon, Aug 17 2009 1:49 pm
Subject: Re: [android-developers] Re: get version from apk

If you want this from the desktop, use "aapt dump badging <path/to/apk>".

On Mon, Aug 17, 2009 at 7:24 AM, Greivin Lopez <greivin.lo...@gmail.com>wrote:

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
engin  
View profile  
 More options Aug 17 2009, 2:47 pm
From: engin <enginarsla...@gmail.com>
Date: Mon, 17 Aug 2009 11:47:32 -0700 (PDT)
Local: Mon, Aug 17 2009 2:47 pm
Subject: Re: get version from apk
thanks hackborn it works.

On Aug 17, 8:49 pm, Dianne Hackborn <hack...@android.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »