January 2014
Intermediate to advanced
736 pages
70h 43m
English
Throughout its life, an Activity can be in one of several states—active (i.e., running), paused or stopped. The Activity transitions between these states in response to various events:
• An active Activity is visible on the screen and “has the focus”—that is, it’s in the foreground. This is the Activity the user is interacting with.
• A paused Activity is visible on the screen but does not have the focus—such as when an alert dialog is displayed.
• A stopped activity is not visible on the screen and is likely to be killed by the system when its memory is needed. An Activity is stopped when another Activity becomes active.
As an Activity transitions among these states, the Android runtime calls various Activity ...
Read now
Unlock full access