Thursday, 7 March 2013

Setting working Environment for Android


Hello My Droid Friends,

Set Working environment for Android
To work on android we need to setup working environment. Before setting up android environment we
need to fulfill some basics like
1. JDK must be installed (to install
http://www.oracle.com/technetwork/java/javase/downloads/index.html)
2. Eclipse for java must be installed (http://www.eclipse.org/downloads/)
We are expecting that eclipse is working fine.
1. Download Android SDK
It includes only the core Standard development Kit (SDK) Tools, which will help us in developing Android Applications.
Download Android SDK from http://developer.android.com/sdk/index.html
After downloading .zip or .tgz package (instead of the SDK installer), unpack it to a safe location on your machine.
We will be using it later on in coming steps.
2. Install Android development Tools (ADT)
In Eclipse From Help menu click on Install New Software option



Click on Add button and on Add Site window fill following url to download Android ADT, you can enter any name in Name field, and click on Ok button.




Eclipse will search for the available tools and show their list.


Select all tools and click on Next. It will start checking the things and will show list of tools which will be installed.



Click on Next button and after a license verification it will start downloading and may take some time depending upon the speed of Internet. After successfully installing it will ask to restart eclipse.
Restart it.

3. Adding SDK Location
From Window menu click on Preferences there would be Android option visible (which is also assurance that android ADT is installed :) ). Here we need to tell Eclipse where the Android SDK is located. So click on Android from list, and then browse it to the SDK unzipped directory and click on Ok.





4. Install SDK Latest Version
After that come up on Android SDK and AVD Manager from the Window menu. Select available packages and select the latest version of the SDK, in my case I will select followings, you can select based on your own choice and click on Install Selected to complete the installation, and restart eclipse after it.


During installation It would be looking like this.


5. Set Up Device
As we are almost done, last step is we need to set up device to work, real device can be attached, but we will be using simulator for the scope of our work. From eclipse interface click on this icon from top left side of IDE.
               
                                                                                                   
Select the option Virtual Devices and click on New.
On Android Virtual Device screen fill the followings and click on Create AVD.



It will show the device added in Android SDK and AVD manager screen


Now our setup is complete and we are ready to develop android applications.


Enjoy Coding :)
Cheers...... :)

You may also like this link:
1. Roboelectric test case Integration in Android

Mukesh Yadav

Hi Guys I am from Delhi working as Web/Mobile Application Developer(Android Developer), also have knowledge of Roboelctric and Mockito ,android test driven development... Blogging has been my passion and I think blogging is one of the powerful medium to share knowledge and ideas....

2 comments:

  1. I've been working on ADT since 3 days, is there any better IDES than eclipse?

    ReplyDelete
  2. I don't think there is any other IDE who is more compatible with android and more light weight.

    ReplyDelete

 

Copyright @ 2013 Android Developer Blog.

Blog Widget by LinkWithin