Wednesday, July 21, 2010

Android directory and file structure

It is introduction of the eclipse project explorer directory structures.

  1. "src" this is abbreviation of source. This folder contains, in fact, the java source files and packages.
  2. "gen" is automatically generated folder and we must not need to edit its files and packages. It contains the auto generated file "R.java" which is generated and updated by eclipse.
  3. "assets" contains the image, video and sound files for the application usage.
  4. "res" contains different folders.
    • "drawable-hdpi" is the high dip devices images and drawable stuffs.
    • "drawable-ldpi" and "drawable-mdpi" same as "drawable-hdpi" but these are used for the low dpi and medium dpi devices.
    • "layout" contains the xml layout for the screens (Activities).
    • "values" contains the strings.xml and style files.

  5. "AndroidManifest.xml" contains the meta-data of the application. Like activity list, theme on application level or activity level, application level settings, permissions, and instructions.
Hope it will improve your understanding of the code of Android in Eclipse.

No comments:

Post a Comment