July 2015
Beginner to intermediate
600 pages
18h 59m
English
In this chapter, you will add a second activity to GeoQuiz. An activity controls a screen of information, and this activity will add a second screen that offers users a chance to see the answer to the current question. Figure 5.1 shows the new activity.
Figure 5.1 CheatActivity offers the chance to peek at the answer
If the user chooses to view the answer and then returns to the QuizActivity and answers the question, he or she will get a new message, shown in Figure 5.2.
Figure 5.2 QuizActivity knows if you’ve been cheating
Why is this a good Android programming exercise? You will learn ...
Read now
Unlock full access