Directory Structure of Android:
Let's talk about each directory separately:
1, SRC: Store all the source code in the application (background), the source file of the code is usually stored under the corresponding package.
2, Gen: The directory is generally Buildconfig.java and r.java two files;
[1] Buildconfig: Configuration file, cannot change
[2] R: Resource file, automatically generated by ADT, holds the ID of all the resource files used in the application, and only uses r files during program development, generally without manual modification.
3, android4.4w: storage is required for the project support. Jar package.
4, Android Private Libraries: Third-party support files, 4 later version of the class library.
5. Assets: Store the external resource file used by the application, the program can read and write the directory file through the input/output stream, the resources here will not generate the resource index in Gen.
6. Bin: Compiled binary file:
[1]dexedlibs: Support Library; [2]res: no compiled resource file; [3]androidmanifest.xml;
[4]classes.dex: Packaged class; [5]myandroid.apk: Generated file; [6]RESOURCES.AP_: Compiled resource file.
7, Libs: The following is the Java Jar package, and Android Private libraries under the same.
8. Res Resource directory: Resources placed here will generate the resource file index in Gen
[1]drawable: Resource picture; resolution from high to Low:drawable-xxdpi, drawable-xhdpi, drawable-hdpi,drawable-mdpi, DRAWABLE-MDPI .
[2]layout:layout index, store layout file; [3]menu:menu index value, store menu file;
[4]values: Store Key-value pairs, string index values, change values, or add values that are automatically generated in Gen R.java updates.
(1) Dimens: Size, (2) String: String index, (3) Sytles: Type style.
[5]values: Resource screen adaptation.
9. AndroidManifest.xml:android master configuration file.
10, Project.Properties: Project properties, using the package and version of the third part of the Android version of the package can be changed, "right click" project name → "Properties" → "Android", select the appropriate version.
Introduce Androidmanifest.xml:
<?xml version= "1.0" encoding= "Utf-8"?> <!--XML version and encoding--><manifest xmlns:android= "/http Schemas.android.com/apk/res/android "package=" com.myandroid "//Package name android:versioncode=" 1 "//version number Android:ver Sionname= "1.0" > <!--this tag defines the project's usage schema, its package and version number--<uses-sdk android:minsdkversion= "Android" : targetsdkversion= "/>" <!--specify the minimum and target version number of the SDK--<application android:allowbackup= "true" android:icon= "@drawable/ic_launcher"//Icon android:label= "@string/app_name"//Application name android:theme= "@sty Le/apptheme > <!--Specify the icon, app name, and theme style for the item in your phone, and <activity android:name=. Mainactivity "//package Name, class name, is access to the class. This is the class name android:label= "@string/app_name" > <!--Declaration activity component--<intent-filter> &L t;! --Declare the activity acceptable intent--> <action android:name= "Android.intent.action.MAIN"/> < ; category Android:name="Android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application ></manifest>
Android Android Directory