Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The Activity class is central to every Android application. Much of the time, you’ll define and implement an activity for each screen in your application.
In the Chippy’s Revenge game application, you have to implement five different Activity classes. In the course of playing the game, the user transitions from one activity to the next, interacting with the layout controls of each activity.
There are a number of ways to launch an activity, including the following:
• Designating a launch activity in the manifest file
• Launching an activity using the application context
• Launching a child activity from a parent activity for a result
Each Android application must designate a default activity within the Android manifest file. If you inspect the manifest file of the HelloKindle project, you notice that HelloKindleActivity is designated as the default activity.