Tag Archive for gen

Structure of an Android project

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:

  1.  drawable-IPRA
  2.  drawable-MDPI
  3.  drawable-HDPI

■ / res / layout /.

Contains the files defining the various interface screens
graph. Depending on the orientation of the device can be divided into:

  1.  layout
  2.  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:

  1.  Configuration files.
  2.  Data files.
  3.  AndroidManifest.

■ AndroidManifest.xml

Contains important data about the application for example:

  1. Identification (name,version, icon,…).
  2. Components (screens, messages,…..).
  3. Permissions.

I hope my little description about the structure of an Android project have helped someone.

We see soon again!!

Seo Packages