January 2015
Beginner to intermediate
392 pages
8h 44m
English
Here we will detect the right or wrong answer and provide a pop-up message to the player. Our Java is getting quite good now, so let's dive in and add these features. I will explain things as we go and then, as usual, dissect the code thoroughly at the end.
The already completed code is in the download bundle, in the following files that correspond to the filenames we will create/autogenerate in Android Studio in a moment:
Chapter3/MathGameChapter3b/java/MainActivity.javaChapter3/MathGameChapter3b/java/GameActivity.javaChapter3/MathGameChapter3b/layout/activity_main.xmlChapter3/MathGameChapter3b/layout/activity_game.xmlAs usual, I recommend following this tutorial step by step to see how we can create ...
Read now
Unlock full access