Android Application Development with Maven
eBook - ePub

Android Application Development with Maven

Patroklos Papapetrou, Jonathan LALOU

Buch teilen
  1. 192 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Android Application Development with Maven

Patroklos Papapetrou, Jonathan LALOU

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Android Application Development with Maven als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Android Application Development with Maven von Patroklos Papapetrou, Jonathan LALOU im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Application Development. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

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...

Inhaltsverzeichnis