Getting Started with Android Development

In these set of Tutorials, I’ll guide you through the basics right from setting up the environment to eventually develop apps for real-time usage in your Android based devices.

Prerequisites: None

Required Components

1. The Eclipse IDE – I will be using Eclipse JEE – Helios SR1 version on x86 Windows Platform
2. The Android SDK – Download and Install
3. Android Development Tools (ADT) Plugin – Eclipse Plugin required for Android Development

Setting up the Environment

Install Eclipse

Download | Extract the Latest Eclipse version available on the site. Run the executable file ‘eclipse.exe’ to start the IDE. It will ask for a workspace directory. This is basically the directory where you will be working. It is always recommended to create a directory and keep all development work inside, all together at one place.

Android Workspace

Install ADT plugin for Eclipse

Go to “Help” >> “Install New Software..” . Click ADD on the top right corner . Give any name like ‘ADT Plugin‘ and Location as :

Add Repository

Click OK . In Next Step Tick checkbox next to Developer Tools. Click Next. Accept Terms and Conditions. Click Finish.

Follow this link for detailed Installation and Troubleshooting.

Next task is to download and install the Android SDK. Download and install Android SDK. Now run Start Menu >> Programs >> Android SDK Tools >> ‘SDK Manager’

Download all the Available Packages. It may take upto 1-1.5GB space to download.

Integrating SDK path in Eclipse

Start Eclipse. Go to ‘Window‘ >> ‘Preferences‘ .

Select the ‘Android‘ option in the left. Click on Browse and locate the directory where SDK have been installed. Click Ok. and then click Apply. Eclipse will recognize all the SDKs available on your system.

Eclipse Preferences

Create a Virtual Device

Start Eclipse. Go to ‘Window’ >> ‘Android SDK and AVD Manager’ . Select ‘Virtual Devices‘ on left and click ‘New‘ on right. Give a Name and Select the Target for which version you want to develop Apps. I’ll be developing for Android 2.2 , simply because very few devices have 2.3 installed as of now.

Android Virtual Device

You are now done with setting up the complete environment and ready. We’ll start with a simple ‘Hello World’ program in next post.

Tagged , , , , , , , , , ,