Jump to content

zipalign optimisation des appli android sous sdk 1.6


johndoe

Recommended Posts

http://android-france.fr/2009/09/29/optimiser-vos-applications-android-avec-zipalign/

La version 1.6 sdk inclut une nouvelle fonctionnalité qui s’appelle zipalign. Cette nouvelle fonctionnalité permet d’optimiser vos applications pour une plus grande réactivité sur l’os android. Via android developers blog nous avons des explications assez techniques sur le fonctionnement de cet outil.

La partie du billet qui m’a beaucoup intéressé est l’utilisation de cet outil. Plusieurs méthodes pour l’utiliser sont possibles:

* ADT

* Ant

* Ou manuellement en ligne de commande

La méthode manuelle en ligne de commande me semble la plus simple à mettre en œuvre. Pour cette méthode nous disposons de deux commandes :

zipalign -c -v application.apk qui permet de vérifier si votre apk est optimisée

zipalign -v 4 source.apk destination.apk fonction qui optimise votre application (source.apk) et crée un nouveau apk (destination.apk).

Ces deux commandes sont applicables également sur vos applications développées avec le sdk 1.5

source : www.android-france.fr

merci a eux pour cette info précieuse

Link to comment
Share on other sites

j'me suis permis d'essayer sur l'apk d'ufo

C:\android\tools>zipalign.exe -v 4 UfoFree.apk UfoFreeok.apk

Verifying alignment of UfoFreeok.apk (4)...

51 res/anim/ajax.xml (OK - compressed)

412 res/drawable/active.png (OK)

3208 res/drawable/ajax.gif (OK)

3936 res/drawable/ajax1.png (OK)

4164 res/drawable/ajax2.png (OK)

4392 res/drawable/ajax3.png (OK)

4620 res/drawable/ajax4.png (OK)

4848 res/drawable/ajax5.png (OK)

5076 res/drawable/ajax6.png (OK)

5300 res/drawable/ajax7.png (OK)

5528 res/drawable/ajax8.png (OK)

5756 res/drawable/android.png (OK)

8576 res/drawable/bold.png (OK)

10116 res/drawable/fond.png (OK)

115512 res/drawable/fond_land.png (OK)

222488 res/drawable/hr.png (OK)

222660 res/drawable/icon.png (OK)

229984 res/drawable/index.png (OK)

231432 res/drawable/italic.png (OK)

232984 res/drawable/last.png (OK)

236496 res/drawable/newp.png (OK)

238936 res/drawable/next.png (OK)

239504 res/drawable/prev.png (OK)

240076 res/drawable/quote.png (OK)

242572 res/drawable/reply.png (OK)

245376 res/drawable/smile1.png (OK)

248208 res/drawable/underline.png (OK)

250009 res/layout/login.xml (OK - compressed)

250752 res/layout/newpostitem.xml (OK - compressed)

251505 res/layout/pagebar.xml (OK - compressed)

251977 res/layout/postitem.xml (OK - compressed)

252324 res/layout/postitemmain.xml (OK - compressed)

253247 res/layout/postlist.xml (OK - compressed)

254217 res/layout/posts.xml (OK - compressed)

254519 res/layout/reply.xml (OK - compressed)

255612 res/layout/searching.xml (OK - compressed)

256121 res/layout/session.xml (OK - compressed)

256432 res/layout/viewswitch.xml (OK - compressed)

256723 AndroidManifest.xml (OK - compressed)

257760 resources.arsc (OK)

269619 res/layout-land/login.xml (OK - compressed)

270443 res/layout-land/postitemmain.xml (OK - compressed)

271410 res/layout-land/session.xml (OK - compressed)

271707 classes.dex (OK - compressed)

323353 META-INF/MANIFEST.MF (OK - compressed)

324787 META-INF/CERT.SF (OK - compressed)

326254 META-INF/CERT.RSA (OK - compressed)

Verification succesful

j'ai reinstaller avec l'apk créer ça ne pose aucun probleme, apres de la a dire que c'est plus rapide faudrais faire plus de test

Link to comment
Share on other sites

The Android build tools can handle this for you. When using Eclipse with the ADT plugin, the Export Wizard will automatically zipalign your .apk after it signs it with your private key

les applis générés avec le SDK 1.6 sont automatiquement zipalignées....

mais bon c'est pas franchement flagrant non ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...