Hardware Reference
In-Depth Information
8.
On the next page of the wizard, you'll select options for the type of activity to create
(see Figure 4-3 ). The activity is the main form of user interaction. Not all Android apps
need an activity to run, and different API levels give different options. The only one
that can be used for the project's current API is BlankActivity, so choose that, and then
click Next.
Figure 4-3. Activity-creation options
9.
Finally, you'll set some of the names for some of the project's internal files (see Figure 4-4 ).
Make sure that the names in the Activity Name and Title fields match those of the project's
name, followed by Activity (e.g., CH4ExamplesActivity ). For this exercise, change the
layout name to main . The layout name describes the first user interface that the program
will use by default. You can leave Navigation Type at the default of “None,” since this is
going to be a stand-alone application and does not require a parent program. For more
advanced applications, you can change this to accommodate different user interactions,
such as tabbed navigation.
 
Search WWH ::




Custom Search