Assume that the application environment for Android development has been configured. If not, configure the environment first. Create a hello World app for Android,
Three methods to create a hello World Program are described as follows: Create a hello World application with navigation and create a hello World Program with fragmented.
1. Create a basic Hello world application
1. Create a new Android Application project in eclipse.
2. Configure the project. Set the application name and project name and select the appropriate build SDK.
3. Configure the icon of the application launcher. The default settings are used here.
4. Select the app activity type. Select blackactivity.
5. Define activity details. The default settings are used here. Click Finish.
6. Preview. After the modification, run the program. The result is displayed as shown in.
2. Create a hello World with navigation
Let's take a navigation app from our manufacturer. The steps are basically the same as those above. Different steps are as follows:
1. configure settings. Set the app name, project name, and package name.
2. Define activity details. Navigation type here tabs + swipe is selected.
3. Preview. Run the program. The result is shown.
3. Create the fragmented Hello World Program
The basic steps for creating the fragmented Hello World Program are basically the same as those of the previous two. The differences are as follows:
1. configuration. In order to use fragment, the minimum required SDK here is set to API 11.
2. Select activity type. Create a masterdetailflow. You can preview the image on the right.
3. Click "Next" and set the object type to books/book.
4. Preview. After running the program, the result is:
Preview 2
Summary: There are three ways to create Hello world. Including creating basic empty screens, different types of navigations, and more complex fragment. A basic Hello world will be created
Later, we will continue to learn more about the android program.