Learning Java by Building Android Games
上QQ阅读APP看书,第一时间看更新

Self-test questions

Q1) What should you do if all this talk of life cycles, classes, and methods is a bit bemusing?

Q2) What exactly is a Java class?

Q3) What is the difference between a method and a class?

Q4) Take a look at the Android developer site and its more technical explanation of the phases of the life cycle at http://developer.android.com/reference/android/app/Activity.html. Can you see the phase and its related method that we haven't discussed? When would it be triggered in an app? What is the precise pathway an activity takes from creation to destruction?