
Hello everybody again!!
I think that’s a good way to continue with my android tutorials in this post I want to explain the structure of an Android application.
When we Create a new Android project with Eclipse, the program generated the next structure:
Now we will describe all the folders:
1.Src
This folder contains all the source code of the application interface code
graph, helper classes, etc..
2.Res
This folder contains all files necessary for the project:
images, videos, text strings. Different types of resources
should be distributed among the following folders:
■ / res / drawable /.
Contains images of the application. Depending on the resolution of the device can be divided into:
- drawable-IPRA
- drawable-MDPI
- drawable-HDPI
■ / res / layout /.
Contains the files defining the various interface screens
graph. Depending on the orientation of the device can be divided into:
- layout
- layout-land
■ / res / anim /.
contains the definition of the animations used by the application.
■ / res / menu /.
contains defining the application menus.
■ / res / values /.
contains other application resources such as text strings (strings.xml), styles (styles.xml), colors (colors.xml, etc.).
■ / res / xml /.
contains XML files used by the application.
■ / res / raw /.
contains additional resources, usually in a different format to XML, not included
in other toolkits.
3.Gen
Contains a series of code elements automatically generated when we
compile the project.
4.Assets
Contain all the others auxiliary files for the application. For example:
- Configuration files.
- Data files.
- AndroidManifest.
■ AndroidManifest.xml
Contains important data about the application for example:
- Identification (name,version, icon,…).
- Components (screens, messages,…..).
- Permissions.
I hope my little description about the structure of an Android project have helped someone.
We see soon again!!
