Android Basics (1) Android Engineering directory structure Introduction

Source: Internet
Author: User


To expand your first project in Eclipse, expand the following directory structure:





(1) SRC

Is where we put our Java code, and the Plain Java project directory is exactly the same.

(2) Gen

The contents of this directory are automatically generated, there is a R.java file, you add any resources in the project will automatically generate a corresponding resource ID. This must not be manually modified.

(3) Assets

This directory mainly contains files packaged with the program, you can dynamically read these files when your program is running. In addition, when you use the WebView to load the local Web page, all the pages related files are also placed in this directory.
(4) Bin

Mainly contains some of the files generated automatically in the compilation, there will be a compilation of your current project installation package, expand the bin directory you will see XXX.APK, the file copied to the phone can be installed directly.

(5) Libs

If you use a third-party package in your project, you will need to place the jar packages in the Libs directory.

(6) Res

The contents of this directory is a bit more, simply say, you use in the project all the pictures, layouts, strings and other resources to be stored in this directory, the earlier mentioned R.java content is based on the files in this directory automatically generated.

(7) Androidmanifest.xml

This is the configuration file for your entire Android project, and all four components you define in the program need to be registered in this file. You can also add permission declarations to your application in this file, or you can reassign the minimum and target versions of the program that you specified when you created the project. Since this file will often be used later, we use the time to do a detailed explanation.

(8) project.properties

This file is simple, with a single line of code specifying the SDK version to use when compiling the program.

























Android Basics (1) Android Engineering directory structure Introduction

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.