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 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.