Eclipse Android – Android Project Structure Eclipse IDE

Eclipse Android – Android Project Structure Eclipse IDE

Before building an application in Android, we need to know eclipse android project structure and some basic concepts of project folders which are the key building blocks of an Android application.

Let us take an example which contains the project name, its directories and sub-directories.

In Eclipse IDE, you can see the following structure very well. We will explain only important project folders here.

MyApplication/

src
gen
Android X
Android Dependencies
assets
bin
libs
res/

drawable
layout
menu
values
anim
raw

AndroidManifest.xml
progaurd-project.txt
project.properties

Let’s understand the above eclipse android project directories one by one.

src

It contains java source files.

gen

It contains automated generated files. Like R.java

Android X

Here X is the version, It contains JAR files having required classes for target platform (build SDK).

Android Dependencies

It contains a JAR file having required classes for Compatibility purpose (Minimum Required SDK).

assets

It contains binary files like video or audio files.

bin

It contains compiled version of Application in “.apk” format (android package or application pakage).

libs

It contains external library files in form of .jar.

res

This is s directory which contain all the resource files. Let’s see the sub-directories inside this.

drawable

It contains drawable files like images.

layout

This is our layout files which contain all the XML files. It creates our apps UI.

menu

It contains XML files which create option menu.

values

It contains XML files for Localisation, Styles etc.

anim

It contains XML files which create Animation.

raw

It contains the Arbitrary files to save in the raw form.

AndroidManifest.xml

It stores configuration about an Application like the number of activities, permissions, external libraries, package name, version information etc.

progaurd-project.txt

This file is used to make decompilation difficult.

project.properties

It stores information about Target.

So, this is all about the eclipse android project structure which is in form of directories and sub-directories.

We can organize it by defining the colors, images and other resources.