A Deeper Look!

Posted on Updated on

So, it’s time for another post. Let’s start!

In the last post, we treated the entire project folder as a black box and just performed some steps to create, debug and run an Android project. We also touched upon the concept of emulator. Now, it’s time to go inside the project folder and discuss each component separately. 

Let’s have a look at the project structure created yesterday.

Image

The top level folder is the name of the project. It’s the folder in your work space where all the files related to your project will be placed.

There are various files and sub-folders under this heading:

  • src: As the name suggests, it is the name of the folder where all the source files are stored. If you click at the package name, you will find a file called *.java where * depends on the name of the activity you chose while making the project (Remember?). Do you see any need of having a package at the top? If not, wait for sometime.
  • gen: This folder has files that are automatically generated. We will look at these files a little later. No need to worry for now!
  • res: (Folders in between! Not much important. I will discuss if you ask for it.) . The sub-folders whose name start with “drawable” store the images which act as icons for the app in the various places in Android platform (the different folders are used to store different sizes as the icon size in the menu is different from the one in task manager and so on. Doesn’t make any sense! Don’t worry, we will come to it when we will try to change the icons of our apps. There are two important sub-folders named layout and values. We will look upon them in a greater detail in the next post.
  • Android Manifest.xml: This file acts like a template used to tell the Android about the components of the project and it’s specific requirements. For example, it specifies whether the project is compatible with Android 2.2 or it requires any higher version. It also specifies which java file is the starting file for the project. For those who are realy curious, double click on it and go to AndroidManifest.xml tab (bottom of the editor window) and try to make sense out of it. For the rest, we will modify this file only when we will be talking about something called an Intent.

This tutorial was meant to be an overview for the posts to follow. In the coming posts, we will be playing around with the layout and values folder, and look at their capabilities in changing the properties of the app. Please share with me any kind of difficulties that you may be having. I will be happy to help!

Coming up with the next post soon!

Till then, Bye!

Advertisements

One thought on “A Deeper Look!

    sandeep said:
    May 6, 2012 at 4:55 pm

    done!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s