Android Application Root Elements

posted Jan 25, 2011, 2:46 AM by Thiyagaraaj M   [ updated Feb 1, 2011, 7:12 AM by Thiyagaraaj Mp ]

Android Architecture:

List Of Elements:

    • AndroidManifest.xml
    • build.xml
    • bin/
    • libs/
    • src/
    • res/
    • assets/

Elements and its Meaning:

  • AndroidManifest.xml, an XML file describing the application being built and what components???activities, services, etc.???are being supplied by that application
  • build.xml, an Ant1 script for compiling the application and installing it on the device
  •, a property file used by the Ant build script
  • bin/ holds the application once it is compiled
  • libs/ holds any third-party Java JARs your application requires
  • src/ holds the Java source code for the application
  • res/ holds resources, such as icons, GUI layouts, and the like, that get packaged with the compiled Java in the application
  • assets/ holds other static files you wish packaged with the application for deployment onto the device. 


  • res/drawable/ for images (PNG, JPEG, etc.)
  • res/layout/ for XML-based UI layout specifications
  • res/menu/ for XML-based menu specifications
  • res/raw/ for general-purpose files (e.g., a CSV file of account information)
  • res/values/ for strings, dimensions, and the like
  • res/xml/ for other general-purpose XML files you wish to ship

Bin Folders and Files:

  • bin/classes/ holds the compiled Java classes
  • bin/classes.dex holds the executable created from those compiled Java classes
  • bin/yourapp.ap_ holds your application???s resources, packaged as a ZIP file (where yourapp is the name of your application)
  • bin/yourapp-debug.apk or bin/yourapp-unsigned.apk is the actual Android application (where yourapp is the name of your application)

List Of Android Articles