First, manually create an Android project
Create an Android project manually, named HelloWorld, with the following command:
Android Create Project-n helloworld-t 1-p e:/android/workspace/helloworld- k me.gacl.helloworld-a HelloWorld
In the above command,-n Specifies the name of the project,-t specifies the Android platform,-p specifies the project storage path,-k specifies the project package name,-a specifies the activity name.
Use the command Android list targets to view the optional Android platform as shown in:
Since I use the SDK Manager to download only the latest version of Android5.0.1 and Google Inc, the Android list targets command sees only 2 of the optional Android platforms that you can see, 1 The target is android-21, which is the Android 5.0.1.
Run the above command to create an Android project in the E:/android/workspace/helloworld directory, as shown in:
The directory structure of the generated Android project is as follows:
Second, the Android directory structure description
HelloWorld
|----Bin
|----Libs
|----Res
| |----drawable-ldpi
| |----drawable-mdpi
| |----drawable-hdpi
| |----drawable-xhdpi
| |----layout
| | |----Main.xml
| |----values
| |----Strings.xml
|----src
| |----Me
| |----GACL
| |----HelloWorld
| |----Helloworld.java
|----Androidmanifest.xml
|----ant.properties
|----Build.xml
|----local.properties
|----Proguard-project.txt
|----project.properties
Here are the main directories and files for Android projects:
Bin directory: This directory is used to store the generated target files, such as Java binaries, resource packaging files (. AP_ suffixes), executable files (. dex suffixes) for Dalvik virtual machines, and package application files (. apk suffixes).
"Libs" directory: This directory is used to store third-party jar package files that need to be used
"Res" directory: This directory is used for the various resource files of Android project, such as "layout" directory to store interface layout files, such as Main.xml, "values" directory is stored in various XML format resource files, For example, a string resource file: Strings.xml; color resource file: colors.xml; size resource file: Dimens.xml. The 4 subdirectories of "drawable-ldpi", "drawable-mdpi", "drawable-hdpi", "drawable-xhdpi" are used for "low resolution", "Medium resolution", "high Resolution", "ultra high Resolution", respectively. 4 of image files.
"src" directory: This directory is used to store Java source files
The "Androidmanifest.xml" file is a system manifest file for Android projects that controls the overall properties of the Android app, such as its name, icon, access rights, and so on. In addition to the Android app's activity, Service, ContentProvider, broadcastrecevier these 4 components need to be configured in this file.
Http://www.cnblogs.com/xdp-gacl/p/4338352.html
Android Development Learning Summary (v)--android application directory structure analysis (GO)