1. Resource Types
Resources found in /res folder
Here's a brief summary of each
resource type:
Animation ResourcesDefine pre-
determined animations.
2. Color State List ResourceDefine a
color resources that changes based
on the View state.
Saved in res/color/ and accessed from
the R.color
3. class.
Drawable ResourcesDefine various
graphics with bitmaps or XML.
Saved in res/drawable/ and accessed
from the R.drawable
4. class.Layout ResourceDefine the
layout for your application UI.
Saved in res/layout/ and accessed
from the R.layout
5. class.Menu ResourceDefine the
contents of your application menus.
Saved in res/menu/ and accessed
from the R.menu class.
String ResourcesDefine strings, string
arrays, and plurals (and include string
formatting and styling).
Saved in res/values/ and accessed
from the R.string, R.array,
6. /src
The src folder contains the application’s
source code in the form of Java files and is
organized into different packages
depending on its functionality.
/GEN
Gen folder contains files that are
automatically created by the ADT.It
contains R.java that was automatically
generated.R.java contains references to
all the resources that we have created in
the res folder of the android project.
7. For every resources that is added to
the android project the ADT tool
regenerates the R.java file in order to
hold a reference to the newly added
resource.
We should not manually edit the
contents of R.java file as the
application might not compile.
8. /android <version number>
Android folder indicates the target library
of the Android Application.The version
number of the Android will be similar to
the build target version that was chosen
when creating the project .android.jar file
contains the required libraries to
execute our android program.
9. /assets
Assets folder is used to store any raw data files
such as audio ,images etc.AssetManager in
android is used to access the data in this
folder.DATA stored in this folder cannot be
referenced using an ID.
/bin
bin folder contains the compiled version of the
android application files.This folder contains the
class files which is a compiled version of .java
files,dex files which is a compiled version from
java .class files.apk files which is an android
executable file and its respective archives.
10. /res
Res folder contains external resources
used inan Android application.External
resources could be images ,layout XML
files ,audio files etc.
11. SUBFOLDERS
/res/drawable
Drawable folder contains the bitmap files
that are used by the Android
Application.There are three different
folders in the project hierarchy to store
these files .They are
Drawable-ldpi
ldpi stands for low density pixel
resolution
Drawable-hdpi
Hdpi stands for high density pixel
resolution
12. This folder contains images that can be
used for specific screen
configurations.Android device chooses
images from one of the folders
depending on its screen resolution.
/res/layout
Layout folder stores XML files that are
configured with the user interface
components of all activities in an android
application.
13. /res/layout
Layout stores XML files that are
configured with the user interface
components of all activities in an android
application.
/res/values
Values contains XML files that define
simple values like
Strings,arrays,styles,colors etc.
/res/menu
Menu folder contains XML files that hold
menu details of the android applications.
14. values is meant for devices below API
11
values-v11 is meant for devices with
API between 11 and 13
values-v14 is is meant for devices
above API 13
15. The resource.ap_ is all the resources for
you file zipped up. Everything from the
res, assets folders and the Manifest file.
The apk file added in the class.dex (all
your compiled code) and any linked .so
(native code).
Both of these files are in .zip format.
They can easily be view by changing the
extension to .zip and opening them.