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.1).
If the emulator does not show GeoQuiz in landscape orientation 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 (Figure 3.2).
After you rotate, you will see the first question again. How and why did this happen? The answers to these questions have to do with the activity lifecycle.
You will learn how to fix this problem in Chapter 4. But first, it is important to understand the root of the problem so you can avoid related bugs that might creep up.
3.17.62.34