Exercise: Android Quiz

The next project is a quiz app. The user will see a question and type in an answer (see Figure 6.41). We will store the questions and answers in corresponding lists. We’ll also need a variable to keep track of what question we are on.


Figure 6.41 The Android Quiz app will make use of lists.

The name of the app is Android Quiz—it will be a five-question quiz to test knowledge about the green robot. Additionally, the app will provide other opportunities for customization and gaining further experience with lists.

1. To begin, create a new project and name it AndroidQuiz. Download the KitKatLogo from the companion site ...

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps now with O’Reilly online learning.

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