5.2.2. Configuring the Quiz

When you first install and run the app, the quiz is configured to display three 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 three guess Buttons per flag. On a phone, a tablet or AVD in portrait orientation, touch the options menu icon ( Image, Fig. 5.1) on the action bar to open the menu, then select Settings so you can view the app’s options in the Flag Quiz Settings screen (Fig. 5.3(a)). On a tablet device or tablet AVD in landscape orientation, the app’s settings options appear at the left side of the screen (Fig. 5.2). Touch Number of Choices to display the dialog (Fig. 5.3(b)) for selecting the number of Buttons that should be displayed with each flag. (On a tablet device or tablet AVD in landscape orientation, the entire app is grayed out and the dialog appears in the center of the screen.) By default, 3 is selected. To make the quiz more challenging, you can select 6 or 9 and touch OK; otherwise, touch Cancel to return to the Flag Quiz Settings screen. We used the default setting of three guess Buttons for this test-drive.

Image

a) Menu with the user touching Number of Choices

Image

b) Dialog showing options for number of choices

Fig. 5.3 | Flag Quiz settings screen and the Number of Choices dialog.

Next, touch Regions (Fig. 5.4(a)) to display the checkboxes representing the world regions (Fig. 5.4(b)). By default, all regions are enabled when the app is first executed, so any of the world’s flags can be selected randomly for the quiz. Touch the checkboxes next to Africa, Asia, Europe, Oceania and South America to uncheck them—this excludes those regions’ countries from the quiz. Touch OK to reset the quiz with the updated settings. On a phone, a tablet or AVD in portrait orientation, touch the back button (Image) to return to the quiz. On a tablet device or tablet AVD in landscape orientation, a quiz with the updated settings is immediately displayed at the right side of the screen.

Image

a) Menu with the user touching Regions

Image

b) Dialog showing regions

Fig. 5.4 | Flag Quiz settings screen and the Regions dialog.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset