O'Reilly logo

Android Programming Concepts by Trish Cornez, Richard Cornez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3 Activities and Intents

Chapter Objectives

In this chapter you will:

  Explore an Activity’s lifecycle.

  Learn about saving and restoring an Activity.

  Understand Intents and how they are used with multiple Activities.

  Become familiar with passing data between Activities.

  Implement applications that require basic animation Activity transitions.

  Study Scene transitions.

  3.1 Activity Lifecycle

All Android applications comprise at least one Activity class. In most cases, applications will require the use of several activities. Consider a chess game application that allows opponents to play a game and chat during the game. Such an application, as shown in Figure 3-1, might utilize one activity for chess play and a separate activity ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required