Wednesday, 20 February 2013

Android SDK Installation Guide.

by Umesh U. Chougule on Feb 21st 2013 ,12:00 PM

This guide will describe you how to install the Google's Android Software Development Kit (SDK) and set up your Development Environments.

- First you'll need to download the Android SDK tools -
Link - 1) http://developer.android.com/sdk/index.html   or
           2) http://developer.android.com/sdk/installing/index.html


System Requirements-
To start with Android development you'll of course need a suitable Environment.

Currently following operating systems are supported :
  • Mac OS X 10.4 Later.
  • Linux (tested on Ubuntu).
  • Windows XP and Vista.  
You will also need Suitable development Environment :
  •  Eclipse IDE.
  • Android development Tools.
other Development Environments :
  •  JDK 5 or JDK 6
  • Apache Ant (you can say it is optional)

Installing The Android SDK - 

First you will need to download the Android SDK .zip archive, once downloaded find a suitable installation location on your machine and extract the zipped files.

You can download from Here On clicking "DOWNLOAD FOR OTHER PLATFORMS"-

                http://developer.android.com/sdk/index.html

    Download ADT Bundle and SDK tools Package as per your Development Environment - 

System Set Up -

1) First Install JDK on your windows XP.

Step 1. Installing Eclipse IDE on computer.


    1.    First you can download eclipse.
    2.    Then extract it to you preferred directory.
    3.    After that you can go to installed directory then run eclipse.exe


 If you choose to use the Eclipse IDE as your Android development environment you will have the opportunity to install and run a plug-in called Android Development Tools. ADT comes with a variety of powerful tools and extensions that will make creating, running and debugging your Android applications much easier and faster.



Step 2. Installing Android SDK starter package on computer.

First you can download SDK form above link. The recommended one is marked by red in following screen shot.


Then run this installer, it will install Android SDK for you.
After you install SDK go to the installed directory then run SDK Manager.exe

 Then you can see above window this is Android SDK and AVD Manager.

 Step 3. Installing ADT plugin for Eclipse.

    1.    First Start the Eclipse IDE that you installed.
    2.    Then go to Help >  Install New Software... and click Add.. button in right-top.It will appear following window.



then add following detail and click OK button
Name       :      As you wish (exp:-ADT)
Location  :      https://dl-ssl.google.com/android/eclipse/

Then it shows Available Software dialog,then select Developer Tools and click Next button.
Next you can see software package to be installed.so click Next button
Then read license agreements and accept it then click Finish.

After complete installation restart Eclipse IDE.

Then go to Windows > Preferences.. to open preferences panel.
In left panel click Android
For the  SDK Location in the panel, locate your SDK directory using Browse... button.
Finaly Click on Apply,then OK


After you install ADT plugin for Eclipse the following toolbar appear on Eclipse IDE.

               

The highlighted icon is use for lunching Android SDK and AVD Manager.


Creating A New Android Project
The Android Development Tools plugins  provides a Wizard for setting up new Projects which will allow us to create new Eclipse projects relatively quickly for either new or existing code.

Select File > New > Project
    1.    Select Android > Android Project, and press Next
    2.    Select the contents for the project:

    •    Select Create new project in workspace to start a project for new code.
Enter the project name, the base package name, the name of a single Activity class to create as a stub .java file, and a name to use for your application.

    •    Select Create project from existing source to start a project from existing code. Use this option if you want to build and run any of the sample applications included with the SDK.
The sample applications are located in the samples/ directory in the SDK. Browse to the directory containing the existing source code and click OK.
 If the directory contains a valid Android manifest file, the ADT plugin fills in the package, activity, and application names for you.
Press Finish.

The Above steps will create Android development on your machine and you can easily startto Create your Own  Android Application.


Thanks,