Start _android _ First Application (Hello World) (i)

Source: Internet
Author: User
Tags configuration settings

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)

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.