Android Application Development with Maven
eBook - ePub

Android Application Development with Maven

Patroklos Papapetrou, Jonathan LALOU

Share book
  1. 192 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Android Application Development with Maven

Patroklos Papapetrou, Jonathan LALOU

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Android Application Development with Maven an online PDF/ePUB?
Yes, you can access Android Application Development with Maven by Patroklos Papapetrou, Jonathan LALOU in PDF and/or ePUB format, as well as other popular books in Informatik & Anwendungsentwicklung. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781783986101

Android Application Development with Maven


Table of Contents

Android Application Development with Maven
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Beginning with the Basics
Installing Java
Download and Install Apache Maven
Android SDK
Android development tools
Android SDK standalone
Creation of a new project
Integration with IDE
Eclipse
Set up and integration of Maven and Android SDK
Creation of a project in Eclipse
IntelliJ IDEA / Android Studio
Set up and integration of Maven and Android SDK
Specific to Android Studio
Specific to IntelliJ IDEA
Import of project
Specific to Android Studio
Specific to IntelliJ IDEA
NetBeans
Set up and integration of Maven and Android SDK
Import a project
Summary
2. Starting the Development Phase
Reminders about Android projects
Creating an AVD
With the GUI
In-command line
Develop and Build
Cleaning
Generating sources
Build
Emulator
Start
Stop
Stop all
Deploy
Undeploy
Architecture principles
Standalone application
Android application within an n-tier architecture
Android with dependencies on SDK Add-ons
Summary
3. Unit Testing
Effectively testing Android applications
Running typical unit tests
Unit testing of activities
Creating a dedicated unit testing module
Running Android unit tests with Maven
Real unit testing with Robolectric
Configuring Robolectric with Maven
Running Robolectric unit tests
Best approach
Measuring test coverage
JaCoCo
Cobertura
Summary
4. Integration Testing
Fundamentals of instrumentation testing
Running Android instrumentation tests
Creating a dedicated integration testing module
Writing a simple instrumentation activity test
Grabbing screenshots with Spoon
Configuring Spoon with Maven
Running Spoon and viewing the reports
Working with Robotium
UI Tests made easy with Selendroid
Configuring Selendroid
Writing Selendroid UI Tests for Maven native applications
Other integration testing tools
Summary
5. Android Flavors
Problem statement
Introducing Maven profiles
Creating build profiles
Separation by packaging
Separation by library
Summary
6. Release Life Cycle and Continuous Integration
Optimizing an Android package
Signing an application
Obfuscating the code
Aligning and zipping uncompressed data
Transforming the package in shippable form
Releasing a new version
Perform a release without deployment to repository
Deploying to a local repository
CI and automation best practices
Summary
7. Other Tools and Plugins
Managing Android code quality
A short history about quality in Android
Analyzing with Lint using Maven
Unleashing the power of SonarQube
Boost development speed with GenyMotion
Deploying our example to a GenyMotion emulator
Summary
Index

Android Application Development with Maven

Copyright Ā© 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2015
Production reference: 1160315
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-610-1
www.packtpub.com

Credits

Authors
Patroklos Papapetrou
Jonathan LALOU
Reviewers
Daniel Beland
David Bernard
Brad Leege
Sujit Pal
Commissioning Editor
Akram Hussain
Acquisition Editor
Harsha Bharwani
Content Development Editor
Mohammed Fahad
Technical Editor
Abhishek R. Kotian
Copy Editors
Nithya P
Adithi Shetty
Project Coordinator
Danuta Jones
Proofreaders
Maria Gould
Lesley Harrison
Clyde Jenkins
Indexer
Mariammal Chettiyar
Graphics
Abhinash Sahu
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat

About the Authors

Patroklos Papapetrou is a software architect addicted to software quality and an agile team leader with more than 15 years of experience in software engineering. His expertise lies in Android and Java development. He believes and invests in people and team spirit, seeking quality excellence. He's one of the authors of the book SonarQube in Action, Manning Publications and his next writing attempt will be The Art of Software Gardening. He treats software systems like flowers; that's why he prefers to call himself a software gardener.
He's also an occasional speaker, conducting talks about clean code, Android development, code quality, and software gardening.
Jonathan LALOU is an engineer fascinated by new technologies, computer sciences, and the digital world since his childhood. A graduate of the Ecole des Minesā€”one of the best French polytechnic institutesā€”Jonathan has more than 14 years of experience in Java and the JEE ecosystem.
Jonathan has worked for several global companies and financial institutions, such as Syred, Philips, Sungard, Ixis CIB, BNP Paribas, and Amundi AM. He has strong ties, daily contacts, and frequent trips in Western Europe, Northern America, Judea, and emerging Asia. During his career, Jonathan has successfully climbed many levels: developer, architect, Scrum master, team leader, and project manager.
Now, Jonathan is CTO at SayaSoft (http://www.sayasoft.fr), a digital company focused on very high value added projects he founded with two partners. SayaSoft brings Java environment, migration of small and large organizations to agility, and Android development to a new level. SayaSoft's customers are ensured to get high-quality releases and quick ROI.
Jonathan's skills include a wide range of technologies and frameworks, such as Spring, JPA/Hibernate, GWT, Mule ESB, JSF/PrimeFaces, Groovy, Android, EJB, JMS, application servers, agile methods, and, of course, Apache Maven.
Jonathan also authored Apache M...

Table of contents