May 2022
Intermediate to advanced
688 pages
20h 12m
English
Every instance of Activity has a lifecycle. During this lifecycle, an activity transitions between four states: resumed, started, created, and nonexistent. For each transition, there is an Activity function that notifies the activity of the change in its state. Figure 3.3 shows the activity lifecycle, states, and functions.
Figure 3.3 Activity state diagram
Figure 3.3 indicates for each state whether the activity has an instance in memory, is visible to the user, or is active in the foreground (accepting user input). Table 3.1 summarizes this information.
Table 3.1 Activity ...
Read now
Unlock full access