Today began to enter the Android development, has been to do some Java webservice and other files, the first time to start from scratch Android project, I will have recently encountered the problem of one by one comb.
Now let's take a look at the various folders created after the Android project. When we set up a basic Android environment, the following folder will appear automatically.
1, src folder; 2, gen folder; 3, Android 2.1 folder; 4, assets;5, res folder; 6, Androidmanifest.xml
1, src folder (storage source code):
As the name implies (SRC, source code) The folder is put into the source code of the project.
2. Gen folder (resource vs Code relationship Mapping):
There is a R.java file under the folder, R.java is generated automatically when the project is built, the file is read-only and cannot be changed. The R.java file defines a class--r,r class that contains many static classes, and the name of the static class corresponds to a name in Res, which is the R class that defines the index of all resources for the project.
4. Assets (entity file):
Contains files such as MP3, video classes that the application needs to use.
5, RES (layout and other resource files):
The resource directory that contains the resource files in your project and will be compiled into the application. When you add a resource to this directory, it is automatically recorded by R.java. Create a new project, the Res directory will have three subdirectories: Drawabel, layout, values.
6, Androidmanifest.xml:
Documenting the environmental information required in the project, such as the Android version, is somewhat similar to the role of the assembly file developed by C#web.
Build Android project under Eclipse, related folder introduction