Android Development Learning--The first Android program (meaning of various parameters)

Source: Internet
Author: User

Below we build the first Android program.

To open eclipse, begin the following steps:

1.File ==> New ==> Android application Project appears in the following window:

2. Fill in the form that appears:
Application name: The names of the applications that are displayed to the user. In this project, use the "My first App"
Project name: The item directory, and the name that is visible in eclipse.
Package Name: namespace for application packages (follow the same rules in Java). The name of the package must be unique, and it is recommended to use the name that begins with the organization's reverse domain name. In this project, you can use the

"Com.example.myfirstapp".

Minimum Required SDK: The minimum version of the Android SDK supported by the application. To support as many devices as possible, you should set the minimum version that can provide your application with its core set of features. If you have features that are only supported under the new version and do not conflict with the core features, you can only provide them in the new version.

Target SDK: Represents the highest version you have tested, with the new version of Android?? OID, you should test the application in the new version and update it to conform to the latest APIs and take advantage of the new platform features.

Compile with: Represents the platform version of the application at compile time. By default, the SDK is set to the latest version.

Theme: Specifies the Android UI style that applies to the application. You can ignore it first.

Click Next.

3. In the next dialog box, leave the default options and click Next.

4. This dialog box allows you to create a launch icon for your application. You can customize the icons in several different ways, and the tool will generate the appropriate icons for all screen resolutions. But when you publish the should

Before use, make sure the icon conforms to the specification iconography design specification.

Click Next.

5. Now you can select a template activity to create the program. For this project, select Blankactivity, and then click Next.

6. All default, and click Finish.

So the first application is finished, so many folders first regardless of what the meaning, later slowly said.

Run our first program first:

First create an AVD step as follows

1. Run Android Virtual Device Manager

2. Click New

3. Add in Details

4.create AVD

5. Select the new AVD from Android Virtual Device Manager and click Start

6. Simulator Startup

Booting from eclipse

Select items, right-click Run as ==> Android application

Run

Android Development Learning--The first Android program (meaning of various parameters)

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.