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.
Let’s understand the above eclipse android project directories one by one.
It contains java source files.
It contains automated generated files. Like R.java
Here X is the version, It contains JAR files having required classes for target platform (build SDK).
It contains a JAR file having required classes for Compatibility purpose (Minimum Required SDK).
It contains binary files like video or audio files.
It contains compiled version of Application in “.apk” format (android package or application pakage).
It contains external library files in form of .jar.
This is s directory which contain all the resource files. Let’s see the sub-directories inside this.
It contains drawable files like images.
This is our layout files which contain all the XML files. It creates our apps UI.
It contains XML files which create option menu.
It contains XML files for Localisation, Styles etc.
It contains XML files which create Animation.
It contains the Arbitrary files to save in the raw form.
It stores configuration about an Application like the number of activities, permissions, external libraries, package name, version information etc.
This file is used to make decompilation difficult.
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.