Rotating GeoQuiz

GeoQuiz works great … until you rotate the device. While the app is running, press the NEXT button to show another question. Then rotate the device. If you are running on the emulator, click the rotate left or rotate right button in the floating toolbar to rotate (Figure 3.2).

Figure 3.2  Control the roll

Control the roll

If the emulator does not rotate after you press one of the rotate buttons, turn auto-rotate on. Swipe down from the top of the screen to open Quick Settings. Press the auto-rotate icon, which is the third icon from the left (Figure 3.3). The icon will change from grayed out to a teal color to indicate that ...

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.