First android Application, android Application

Source: Internet
Author: User

First android Application, android Application

First open Eclipse and an AVD. In Eclipse, SELECT File → New → Project → Android Application Project

Click Next, as shown in.

Note: The Package names of the two applications cannot be the same, because the android mobile phone identifies the application based on the Package Name.

Click Next to enter the Configure Project, which is not modified by default.

Android applications can be divided into two types: one is to run on the mobile phone after development, and the other is used to support development of other applications after development, in this case, check "Mark this project as a library" for packaging.

Click Next and select the startup icon of the application.

Click Next to create an Activity and select Blank Activity.

Click Next to set the name of the Activity and layout file. By default

Click Finish to complete the creation. The Eclipse interface is as follows:

The gen directory is a generated java file, including BuildConfig. java and R. java. We 'd better not modify it by ourselves. It is automatically generated and updated by the ADT.

The assets Directory is used to store various resource files, such as audio, images, and videos.

The bin directory is used to store binary files.

The libs directory is used to store third-party jar files.

The res directory is also used to store various resource files, but the format is strictly defined. Each file is generated by Eclipse with an integer ID. When a resource file is called, an ID is used to represent a resource file.

AndroidMainifest. xml is the main configuration file of the entire application.

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.