First, create the basic Hello World application
1. In eclipse, create a new Android application Project.
2, Configuration Engineering. Set the application name, project name, and select the appropriate build SDk.
3, configure the Application Launcher icon, the default setting is used here.
4. Select the app activity type. Choose Blackactivity here.
5. Define activity details. The default setting is used here. Click Finish.
6. Preview. After completion, run the change program, showing the results such as.
Two. Create a Hello world with navigation
Below let us manufacturers a navigation with the app, the steps are basically consistent with the above, the difference is:
1, configuration settings. Set the app Name,project name, package name, and more.
2. Define activity details. Navigation Type here select Tabs+swipe.
3, preview. After you finish run the program, display the results such as.
Iii. creating a fragmented Hello World program
The basic steps for creating fragmented's Hello World program are basically the same as in the previous two, unlike the following:
1, configuration. In order to be able to use fragment, here the minimum required SDK is set to API 11.
2. Select activity type. Create a Masterdetailflow. The picture to the right can be previewed.
3. Click Next to set the object type to Books/book
4, preview. Complete has run the program, the result is:
Preview 2
Summary: Three different ways to create Hello world. Includes the creation of the underlying empty screens, different types of navigation, and more complex fragment. The basic Hello world is already created
After that, you'll continue to learn more about the Android program.
Start _android _ First Application (Hello World) (i)