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.

Image

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 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.