Android Application Development with Maven
eBook - ePub

Android Application Development with Maven

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

Android Application Development with Maven

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

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

  1. Android Application Development with Maven

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
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 990+ topics, we’ve got you covered! Learn about our mission
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 about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
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 Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.