5.2.3. Taking the Quiz

A new quiz starts with the number of answer choices you selected and flags from only the North America region. Work through the quiz by touching the guess Button for the country that you think matches each flag.

Making a Correct Selection

If the choice is correct (Fig. 5.5(a)), the app disables all the answer Buttons and displays the country name in green followed by an exclamation point at the bottom of the screen (Fig. 5.5(b)). After a short delay, the app loads the next flag and displays a new set of answer Buttons.


a) Choosing the correct answer

b) Correct answer displayed

Fig. 5.5 | User choosing the correct answer ...

Get Android™ How to Program, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.