Create a hello World app for Android

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.