Setup Android on Eclipse
This tutorial is intended for newbies developers that want to start developing Android applications using Eclipse IDE. To start, One most install Java SDK (JDK) (am using jdk 6) and then install the Eclipse, Android SDK and the Android Development Tool (ADT) plugin for Eclipse. Setting up android is quite easy steps to follow
Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Android offers custom plugin for Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment for building Android applications as at this time of blogging the latest is v19.
Download and Install JDK
Download and install the latest JDK (JDK 1.6 or a later version) from JDK download page
Download and Install Eclipse IDE
Download and install Eclipse (Juno) from Eclipse download page. You can also use the Java or RCP version of Eclipse.
Download and Install Android SDK Starter Package
You should know that there are two method of getting the starter pack on your computer system.
- By downloading the zip file
- The other is using the windowS installer
Page to download Android SDK
Dont be alarm though, as there is no visible differences in both,as both have to create an android sdk folder at a specified directory, which pretty much contain same content. that said,
The Android SDK starter package includes the latest version of the SDK Tools. Included in that component are some tools, called Android SDK and AVD Manager that you can use to download other components from the SDK repository site.
Unpack the archive to a suitable location on your machine,if you are using the zip file download . By default, the SDK files are unpacked into a directory named android-sdk-<machine-platform> . For example, on Windows platform the directory will be android-sdk-windows.
Android SDK installation directory
Adding Android Platforms to Your SDK
To add one or more Android platforms (for example, Android 1.6 or Android 2.1) to your SDK, use the Android SDK and AVD Manager, included in the SDK starter package. It is recommended to download multiple platforms, so that you can build your application on the lowest version you want to support, but test against higher versions that you intend the application to run on.
Launch the Android SDK and AVD Manager on Windows by executing SDK Manager.exe at the root of the SDK directory.
On Available Packages menu, select the platforms to download (1.1 to 2.1).
Click Install Selected and then select Accept All to accept selected packages.
Click Install Accepted button to start download and install the selected packages.
Download and Install ADT Plugin
To install the ADT Plugin, you can take advantage of the Eclipse remote update feature. By setting up a remote update site, you can easily download, install, and check for ADT updates. Alternatively, you can download the latest ADT to your development computer as a local site archive.
Launch Eclipse, then select Help –> Install New Software.
In Available Software dialog, click Add
Enter a name for the remote site (ex: Android Plugin) in the Name field and in the Location field, enter this URL:
https://dl-ssl.google.com/android/eclipse/
and then click OK. If you have trouble acquiring the plugin, you can try using ‘http’ instead of ’https’ in the URL.
Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools and then click Next.
On the next dialog, click Next to read and accept the license agreement and install any dependencies, then click Finish.
Restart Eclipse
To check whether the ADT has been installed correctly, try to create a new project by select File > New > Project, you shoud find Android Project listed on project wizard.
Update 2012:
July 2012, Android team has released Android 4.1 (Jelly Bean) software development kit (SDK) has been released in full to developers, which is based on the Linux kernel 3.1.10, it is an incremental update with an aim of improving the user interface both in performance and funtionality.