May 2022
Intermediate to advanced
688 pages
20h 12m
English
In this chapter, you will add a second activity to GeoQuiz. An activity controls a screen of information, and your new activity will add a second screen that offers users a chance to cheat on the current question by showing the answer. Figure 7.1 shows the new activity.
Figure 7.1 CheatActivity offers the chance to peek at the answer
If users choose to view the answer and then return to the MainActivity and answer the question, they will get a new message, shown in Figure 7.2.
Figure 7.2 MainActivity knows if you’ve been cheating
Why is this a good Android programming exercise? Because ...
Read now
Unlock full access