Build Android project under Eclipse, related folder introduction

Source: Internet
Author: User

Today began to enter the Android development, has been to do some Java webservice and other files, the first time to start from scratch Android project, I will have recently encountered the problem of one by one comb.

Now let's take a look at the various folders created after the Android project. When we set up a basic Android environment, the following folder will appear automatically.

1, src folder; 2, gen folder; 3, Android 2.1 folder; 4, assets;5, res folder; 6, Androidmanifest.xml

1, src folder (storage source code):

As the name implies (SRC, source code) The folder is put into the source code of the project.

2. Gen folder (resource vs Code relationship Mapping):

There is a R.java file under the folder, R.java is generated automatically when the project is built, the file is read-only and cannot be changed. The R.java file defines a class--r,r class that contains many static classes, and the name of the static class corresponds to a name in Res, which is the R class that defines the index of all resources for the project.

4. Assets (entity file):

Contains files such as MP3, video classes that the application needs to use.

5, RES (layout and other resource files):

The resource directory that contains the resource files in your project and will be compiled into the application. When you add a resource to this directory, it is automatically recorded by R.java. Create a new project, the Res directory will have three subdirectories: Drawabel, layout, values.

6, Androidmanifest.xml:

Documenting the environmental information required in the project, such as the Android version, is somewhat similar to the role of the assembly file developed by C#web.

Build Android project under Eclipse, related folder introduction

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.