Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The Flag Quiz Game app tests the user’s ability to correctly identify country flags (Fig. 6.1). Initially, the app presents the user with a flag image and three possible answers—one matches the flag and the others are randomly selected, nonduplicated incorrect answers. The app displays the user’s progress throughout the quiz, showing the question number (out of 10) in a TextView above the current flag image.