Chapter 3. User interfaces

 

This chapter covers

  • Understanding activities and views
  • Exploring the Activity lifecycle
  • Working with resources
  • Exploring the AndroidManifest.xml file

 

With our introductory tour of the main components of the Android platform and development environment complete, it’s time to look more closely at the fundamental Android concepts surrounding activities, views, and resources. Activities provide screens for your application and play a key role in the Android application lifecycle. The Android framework manages the life span of visible screens, and you’ll learn how to respond to the various lifecycle points you encounter.

The visible part of an Activity consists of subcomponents called views. Views are what your ...

Get Android in Action, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.