Directory Structure of an Android Application

Before going to discuss “HelloWorld” application from code prospective, We need to know directory structure of an android application. When we create a new android project from eclipse editor, we can see there are lots of directories created for android applications. Let’s us understand these directories. Let’s start from the top most directory is src directory.

SRC Directory

The src Directory contains the java files inside package.

gen Directory

The gen directory contains folder that are generated for us by the toolset. one of the best thing you will find in gen directory is file. file update automatically by the system whenever you add or remove the design object or anything. in straight forward way whatever you add or remove from your project will be update in file.

Android 2.2 or X.X

This folder is associate with the SDK version this is the thing that we have to configure when we create new project of android application.


the assets folder provides repository for your resource which are using by your android application. for eg if your android application has sound effect then you can put those sound files in this folder but you can’t put image files in this folder because we have another folder for images like stuff.


Every program gets compiled and generates binary files same way android program also gets compiled and generate binary files. Android bin folder contains the compiled binary files.


the res folder doesn’t contain any files but it is one of the most important directory in android application. let us see what kind of directory res folder has.


Drawable folder contains images. there are three kind of screen density. you can specify same three images for different screen density. for eg res/drawable-hdpi contains all your image resources for high-resolution devices.   you don’t need to specify which density images to pick when but operating system will choose it at run time.


the layout folder is where you put your main.xml file. all design resources are stored in this folder.


values folder contains string resource. mostly its in key value pair. some common file is strings.xml


The manifest file is responsible for providing essential information to the operating system about a   particular application. for e.g. used to specify the default activity to launch.


Post By SmrutiRanjan (57 Posts)

Working @ Samsung as a Project Lead for Android Smartphones. I have been blogging since 2008. Previously I was writing articles for other bloggers, but finally I have started my own blog-"Techblogon".I am also an active contributor for the blog-"Gadgets n Gizmos World". Job is my necessity, but blogging is my passion.

Website: → Techblogon


7 Responses to Directory Structure of an Android Application

  1. Nikki says:

    Great blog post thanks for posting

  2. Spoorthi ravishankar says:

    I got it done today just now, thnx for helping…
    I will be disturbing u again for some more help when i really develop an app…Pleas help me out in it

  3. Spoorthi ravishankar says:

    am finding prob wen running my existing app (hello world)
    its giving warnings

  4. robert says:

    Just wanted to tell you thus is a great blog. Appreciate the time your taking to present precise android tutorials. Keep it up.

  5. Vijay says:

    The Blog is awesome, great tutorial and thanks a lot for your time to come up with a precise tutorial, hope many ppls gets benefited with this blog and tutorials.

  6. bell says:

    awesome nice and very useful website,thanks alot dude….

Leave a Reply

Your email address will not be published. Required fields are marked *

2 + seven =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">