Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to zipalign the .apk file using eclipse?

Can anyone tell me how to zipalign my .apk file with using eclipse. I have made my .apk file by giving command like,

  1. Right Click on Project Folder

  2. Click on "Android Tools" option from menu.

  3. Click on "Export Signed Application Package..." and my .apk generated in given application alias.

Now want to do zipalign for this above generated .apk file. Does any tool require to do so OR anything that can solve my problem.

like image 273
Tej Zaveri Avatar asked Mar 16 '11 02:03

Tej Zaveri


People also ask

How do I import an APK into eclipse?

Ans: Copy the *. apk file into SDK->platform-tools directory (where you'll find adb.exe file), navigate to that directory through command line on your windows PC. If you want to view the source code of the *.

What is Zipalign APK?

zipalign is a zip archive alignment tool. It ensures that all uncompressed files in the archive are aligned relative to the start of the file. This allows those files to be accessed directly via mmap(2) , removing the need to copy this data in RAM and reducing your app's memory usage.

Where can I find Zipalign?

zipalign has moved to be part of the "build tools", and can be found in the various build-tools/ directories in your Android SDK installation.


1 Answers

If you did what you described above then Eclipse has already zipaligned your apk for you. You can't zipalign an already zipaligned package

like image 102
apesa Avatar answered Sep 20 '22 19:09

apesa