Chapter    10

The Life of an Activity

Up to this point in the book, I have a approached activities in a very practical and tactical way. The examples explored in the earlier chapters introduced activities as the basic UI building blocks, and you’ve seen how the Java code for an activity implements the Android framework and brings to life, through code, selected points in an activity’s lifecycle and the logic to drive your application.

Now that you have a growing understanding of Android, activities, layout. and logic, let’s delve in to the full background on activities, their lifecycle, and all of the common and not-so-common behaviors you should appreciate when building applications. This tour of the deeper fundamentals of activities will help ...

Get Beginning Android, Fifth Edition now with O’Reilly online learning.

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