O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required