I've not used ant for my builds, but...

If you are prompted for the password, and you see ant run zipalign, then it looks like you're all set.

You can further test this by trying to install your .apk with adb:

adb install <apk file name>

Just make sure to first uninstall the debug version of your application, or you'll get a signature conflict.

adb uninstall <your application's package name>

-- Kostya

10.11.2010 19:31, jb пишет:
Hi,

I'm just about ready to Publish my application. I have a question
about the Signing/Aligning of the application.

In looking at the Android documentation they say to run "ant release"
to compile the application in release mode. Then to sign and align the
apk run "jarsigner" and "zipalign".

I had used "android create project" to create my build.xml. I modified
it to run proguard.
I find that when I run "ant release" it appears that signing is done
as part of the process (I'm prompted for my keystore password) and the
apk is zipaligned.

I guess I'm confused that the documentation makes it 3 steps, "run ant
release" then jarsign, then zipalign. BUT, my "ant release" seems to
do everything.

Is the documentation not upto date?  Is it safe/acceptable to just run
"ant release"?

TIA

jb



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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