1. src
The src directory is where all of our java code is placed, and its meaning is exactly the same as the src directory under the ordinary Java project , After you expand, you'll see that the mainactivity file we just created is inside.
2. Gen
The contents of this directory are automatically generated, there is a r.java file, you add in the project any
Any resource will generate a corresponding resource ID in it . This file should never be manually modified.
3. Assets
This directory is not used much, the main can be stored in a number of files packaged with the program, you can dynamically read the contents of these files when your program runs. In addition, if you use the WebView to load the local Web page, all the pages related files are also stored in this directory.
4. Bin
This directory you do not need to pay much attention to, it mainly contains some of the files generated automatically at compile time. There will be a compilation of your current project installed package, expand the bin directory you will see helloworld.apk, the file is copied to the phone can be installed directly.
5. Libs
If you use a third-party jar package in your project, you will need to place the jar packages in the Libs directory and
The Jar packages in this directory will be automatically added to the build path. You can expand in Android 4.0,
Android Private Libraries,android Dependencies These libraries, which show the Jar packages are already
Added to the build path.
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. Of course, there are many subdirectories under this directory, the images are placed in the drawable directory, the layouts are placed in the layout directory, the strings are placed in the values directory, so you don't have to worry about putting the whole Res The catalogue is a mess.
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.
8. Project.Properties
This is a very simple file that specifies the version of the SDK that is used to compile the program through a single line of code . Our HelloWorld Project uses API, and you can change it to another version here and try it.
Android directory structure