4.2 Test-Driving the Flag Quiz App

You’ll now test-drive the Flag Quiz app. To do so, open Android Studio, open the Flag Quiz app from the FlagQuiz folder in the book’s examples folder, then execute the app in the AVD or on a device. This builds the project and runs the app (Fig. 4.1 or Fig. 4.2).

4.2.1 Configuring the Quiz’s Settings

When you first install and run the app, the quiz is configured to display four guess Buttons and to select flags from all of the world’s regions. For this test-drive, you’ll change the app’s options to select flags only from North America and you’ll keep the app’s default setting of four guess Buttons per flag.

On a phone, a tablet or an AVD in portrait orientation, touch the settings icon () on the app bar ( ...

Get Android How to Program, 3/e 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.