Android Development Learning-first Android Program (meaning of various parameters), first android

Source: Internet
Author: User

Android Development Learning-first Android Program (meaning of various parameters), first android

Next we will build the first Android program.

Open Eclipse and start the following steps:

1. File ==> New ==> the following window appears for the Android Application Project:

2. Fill in the form that appears:
Application Name: the Name that the Application displays to the user. In this project, use "My First App"
Project Name: the Name of the Project directory that is visible in Eclipse.
Package Name: The namespace of the application Package (following the same rules in Java ). The package name must be unique. We recommend that you use the name starting with the Reverse Domain Name of the Organization. In this project, you can use

"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 the application with its core feature set. If a feature is supported only in the new version and does not conflict with the core feature, it can be provided only in the new version.

Target SDK: indicates the highest version you have tested. With the new version of Android, you should test and update the application in the new version, to comply with the latest API and take advantage of the new platform features.

Compile With: indicates the platform version of the application during compilation. By default, the SDK is set to the latest version.

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

Click Next.

3. In the following dialog box, retain the default options and click Next.

4. This dialog box creates a startup icon for your application. You can customize icons in several different ways. The tool will generate appropriate icons for all the screens at resolution. However

Before use, make sure that the icons comply with the specifications of the Iconography design specifications.

Click Next.

5. Now you can select a template activity to create a program. For this project, select "BlankActivity" and click "Next.

6. All defaults, and click Finish.

In this way, the first application is created, so many folders do not matter what you mean, and I will talk about it later.

Run our first program first:

To create an AVD, follow these steps:

1. run Android Virtual Device Manager

2. Click New.

3. add details

4. create AVD

5. SlaveAndroid Virtual Device ManagerSelect the new AVD and click start.

6. Start the simulator

Start from eclipse

Select a project, right-click Run as ==> Android Application

Run

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.