Thursday, December 1, 2011

Install and configure Android SDK on Eclipse

Developing Android application takes the advantages of the powerful Eclipse environment to build the Android application. Eclipse is an open source environment for developing Java. To make the Eclipse environment to suitable for developing android, Android Development Tools [ADT] plug-in install with Eclipse. Here are the tutorial helps how to install Android plug-in in Eclipse environment. Most the Android application developer used Eclipse environment. Java programming skills are required for Android application development. Google Android is flexing its muscles and attempting to make a play for the crowded mobile market. Android and the Open Handset alliance is an impressive starting point. Android takes the different approach to applications. The architecture of android permits a highly customizable software environment by its runtime building of requested actions and the code to satisfy those requests.

Obtain and installing Eclipse


Before you start you need to obtain and install Eclipse. Eclipse is the most known integrated development environment [IDE] for Java. Eclipse is executed by an open source community and is used in several different areas for development environment for Java and Android . Installation of Eclipse requires Java Runtime. To install Eclipse, download the package Eclipse IDE for java Developers from the website http://www.eclipse.org/downloads and uzip it to your local directory. After unzipping the downloaded Eclipse is ready to be used, no additional installation required to precede. How eclipse is ready to use, In this tutorial I’m going to use Eclipse Indigo Service Release1 . Now we can how to install Android SDK plug-in n Eclipse. Before that why I mentioned eclipse version is for installing Android SDK installation and configuration is different in different versions of Eclipse. All you need is a basic knowledge. Its not big think everything is simple with basic computer knowledge.

Installing Android SDK on Eclipse


To start Eclipse double click on the file Eclipse.exe [in Microsoft Windows] in the directory were you unpacked Eclipse. The System will prompt you for a workspace. Workspace is the place there you store your Java projects. Select an Directory where you wish to place the workspace and click OK.







After setting your workspace Eclipse will launch and the screen looks like this







Now we can go ahead for Android SDK plug-in installation. Follow the step by step instructions.

Installing the Android Development Tools[ADT]


Step 1 : Run the Install New software under the help menu

Step 2 : Next window select the site or enter the location of site, click Add button on the next window put name as Android Developer Tools and location as https://dl.ssl.google.com/android/eclipse, this is a secured download as https. Click OK







Step 3: Select software SDK listed on the installation window click next to start download and install







Step 4: Next window shows the installation details. Click finish. Eclipse starts installation by downloading SDK from Google. After installation Eclipse prompt for restart the application click on restart now button.







Configure the Eclipse plug-in


Once the Eclipse is restarted it is time to connect the plug-in to SDK installation. Select preference under the window menu. Click on the Android item in the tree view to the left pane. In the right hand pane, specify the SDK installation location







Once the SDK location is specified there are three other sections that may be configured.

Build: Has options for rebuilding resource automatically. Normal is the default
DDMS : Dalvik Debug monitor is used for peering in to a running VM. These settings specify TCP/IP port numbers used for connecting to a running VM with the debugger and various logging levels and options.
Log Cat: This is the log file created on the underlying Linux kernel. Now the Eclipse environment ready to create Android application . Congrats , welcome to Android world :) .

Building The Android Application


Installation of Android SDK plug-in has been finished. Now how do we going to create a Android project from the coming window. Before that select File menu -> New -> Other, Expand the Android directory from the list select Android project then click next button, That’s all start coding







Click next to start the project











Related posts




No comments:

Post a Comment