Chapter    2

Introduction to Android Application Architecture

The first chapter covered the environment and tools necessary to develop Android applications. This chapter will be a broad introductory tour of Android’s application architecture. We will do that by doing three things. First, we will present the architecture of an Android app by building one. We will then present the essential components of Android architecture, namely, activities, resources, intents, activity life cycle, and saving state. We will conclude the chapter with a learning roadmap on how to use the rest of the book to create simple to sophisticated mobile apps.

In the first section of this chapter, a one-page calculator app will give you a bird’s eye view of writing applications ...

Get Pro Android 5, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.