3 The Activity Lifecycle

In this chapter you will learn the cause of the dreaded – and very common – rotation problem. You will also learn how to leverage the mechanics underlying the rotation problem to display an alternate layout when the device is in landscape mode (Figure 3.1).

Figure 3.1  GeoQuiz in landscape orientation

GeoQuiz in landscape orientation

Get Android Programming: The Big Nerd Ranch Guide, 4th Edition now with O’Reilly online learning.

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