July 2015
Beginner to intermediate
600 pages
18h 59m
English
Every instance of Activity has a lifecycle. During this lifecycle, an activity transitions between three states: running, paused, and stopped. For each transition, there is an Activity method that notifies the activity of the change in its state. Figure 3.1 shows the activity lifecycle, states, and methods.
Figure 3.1 Activity state diagram
Subclasses of Activity can take advantage of the methods named in Figure 3.1 to get work done at critical transitions in the activity’s lifecycle.
You are already acquainted with one of these methods – onCreate(Bundle). The OS calls this method ...
Read now
Unlock full access