Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Application Development with Maven

You're reading from   Android Application Development with Maven Learn how to use and configure Maven to support all phases of the development of an Android application

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781783986101
Length 192 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Optimizing an Android package

Google has well-defined a set of steps during the packaging and releasing phases of an Android application to ensure authenticity, optimization, and security. There are three suggested practices: sign, obfuscate, and zipalign. The first one is always performed automatically by the Android build system, even if we don't explicitly describe it in Maven configuration and specify a custom key. The other two are optional, but highly recommended for all Android developers.

In this section of the chapter, we will briefly explain the purpose of each step, and then we will discuss how we can configure Maven to run these tasks in a well-structured way like we have already done in all previous examples.

Signing an application

Like we said, Android requires that all packages, in order to be valid for installation in devices, need to be digitally signed with a certificate. This certificate is used by the Android ecosystem to validate the author of the application. Thankfully...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image