Reprint Link: http://www.cnblogs.com/dyllove98/archive/2013/06/23/3151180.html
1. SRC: The source code of the project is stored in this directory
2. Gen: The files in this directory are all ADT automatically generated, and generally do not need to modify, in fact, this directory only defines a R.java file, which is equivalent to the dictionary of the project, the user interface, strings, pictures and other resources in the project will create its unique ID in the class, When these resources are used in a project, a reference to the resource is obtained from that ID.
3. Android 2.3.3: This directory contains the jar packages that the project supports, along with the Meta-inf directory that is required when the project is packaged.
4. Android Dependencies: Starting from ADT16, there is a library application folder named "Androiddependencies" in the Android project, which is a new way to refer to ADT's third-party libraries. When you need to reference a third-party library, simply create a new folder named "Libs" in your project and copy all third-party packages to that directory. ADT will automatically help you to complete the library reference, and Android dependencies will automatically add the corresponding reference to the jar package.
5. Assets: Resource path, does not register in R file. The main can be stored in a number of files packaged with the program, the program runtime can dynamically read the contents of these files. This directory is used to hold project-related resource files, such as text files, which can be used in the program "Getresources.getassets (). Open (" Text.txt ") to get the input stream InputStream object of the resource file.
6. Bin: Binary file, including class, resource file, Dex, APK, etc.
7. Libs If the project uses a third-party jar package, put it in this folder, the jar package in this directory is automatically added to the build path, such as Android 4.0, Android private libraries, Android dependencies these libraries, The jar packages are already added to the build path.
7. Res: This directory is used to store frequently used resource files in the application, including pictures, sounds, layout files, strings, and parameter profiles, and R.java content is automatically generated based on this directory, including multiple directories
A) The three folders that start with drawable are used to store. png,. 9.png,. jpg and other picture resources (. 9.png is an Android-specific image format that can be stretched to a non-deforming effect depending on the situation)
b) The Layout folder holds the application's layouts file
c) Raw is used to store resources such as sounds used by the application. The files in raw are mapped to the R.java file, accessed directly using the resource ID as R.id.filename, and the files under the Assets folder are not mapped to R.java, and Assetmanager classes are required for access.
d) values are stored in all XML-formatted resource description files, such as: string resource description file Strings.xml, style description file Styles.xml, color description file Colors.xml, Dimens.xml dimension description File and array description file Arrays.xml, etc.
8. Androidmanifest.xml: The manifest file is read during software installation, the entire project configuration file, the four components defined in the program must be registered in this file, and add the permission statement.
9. The four components of Android (Activity, ContentProvider, Broadcastreceiver, Service) require that the permissions required to register the program in the file need to be declared in this file, for example: Phone, SMS, Internet, Access SD Card
Project.Properties: Configuration files for project properties, ADT14, Project.Properties and Default.properties merged into Project.Properties. For eclipse use, read the project using the SDK version number.
Proguard-project.txt: Code Obfuscation related files
Finally, after we introduce a project to be done, Program startup process: Eclipse compiles. java source files into. class, converts all. class files to. dex files using the DX tool, and then packages the. dex file and all resources into an. apk file, installs the. apk file into the virtual machine completion program, and starts the program – Open process – open main thread; Create Activity Object – Execute OnCreate () method; Initialize interface according to Main.xml file
Directory Structure of Android programs (GO)