Fifth, add a new interface code listing 5-1 add a string resource (Strings.xml)
Code Listing 5-2 layout component definition for the second activity (Activity_cheat.xml)
Code Listing 5-3 overrides OnCreate (...) Method (Cheatactivity.java)
Listing 5-4 is declared in the manifest configuration file cheatactivity (androidmanifest.xml)
Code Listing 5-5 Add Cheat button (layout/activity_quiz.xml) in default layout
Listing 5-6 Adding the cheat button to the horizontal layout (layout-land/activity_quiz.xml)
Code listing 5-7 Enabling the Cheat button (Quizactivity.java)
Listing 5-8 starting cheatactivity (Quizactivity.java)
Code listing 5-9 Adding extra constants (Cheatactivity.java)
Listing 5-10 attaching extra to intent (Quizactivity.java)
Code Listing 5-11 getting extra information (Cheatactivity.java)
Code listing 5-12 enabling cheat mode (Cheatactivity.java)
Code Listing 5-13 calls Startactivityforresult (...) Method (Quizactivity.java)
Listing 5-14 Setting the result value (Cheatactivity.java)
Code Listing 5-15 Onactivityresult (...) Implementation of the method (Quizactivity.java)
Code listing 5-16 changing toast messages based on Mischeater variable values (Quizactivity.java)
Code Listing 5-17 Quizactivity is designated as launcher activity (androidmanifest.xml)
Lab 4-2: Mastering the Android App debug method and adding a new interface