Android Application Development with Maven
eBook - ePub

Android Application Development with Maven

Patroklos Papapetrou, Jonathan LALOU

Compartir libro
  1. 192 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Android Application Development with Maven

Patroklos Papapetrou, Jonathan LALOU

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Android Application Development with Maven un PDF/ePUB en línea?
Sí, puedes acceder a Android Application Development with Maven de Patroklos Papapetrou, Jonathan LALOU en formato PDF o ePUB, así como a otros libros populares de Computer Science y Application Development. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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...

Índice