<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Setting up an Android Development Environment on Windows

Published on
12,147 Points
5,047 Views
6 Endorsements
Last Modified:
Approved
Community Pick
Android is growing in popularity and we are seeing more and more developments. It is not that difficult, but does require a bit of manual effort in setting up your development environment properly. Here are the steps I have taken to setup my development environment on Windows.

Before you start you will need to download an IDE like Eclipse. I downloaded Eclipse Classic 3.6. Eclipse does not install like a usual windows application so you have to manually copy the eclipse folder to a suitable location on your hard drive then create yourself a shortcut.

Install the JDK if you do not have it already.

Install the Android SDK starter package I downloaded the windows executable from here
make a note of the install path as you will need this in the next step. In my case it was "C:\Program Files\Android\android-sdk-windows" . When the starter package install has finished agree to run and then select the "accept all" check box to download all the SDK tools.

Install the ADT Plugin. Open Eclipse and select Help/Install New Software click add in the top right corner then enter ADT Plugin for the name and input the following link.

https://dl-ssl.google.com/android/eclipse/

screenshot1
then click next, accept the agreement and click finish to install the plugin.

To configure the ADT plugin click Window/Preferences, select android on the left then paste in or browse to the path of your sdk location.

 screenshot2
To add platforms or other components double-click the SDK Manager.ext file at the root of the Android SDK directory. Here you can also setup virtual devices.

 screenshot3
To debug and run your application you can setup a virtual device otherwise known as an AVD.
To create an AVD go to Window \ Android SDK Manager , AVD Manager
then select virtual devices on the left. Click new to launch the AVD dialog.

Give the AVD a name this can be any name for your reference. It is possible to have many different AVD's
with different configurations.  I called my first one avd1.

You will then need to choose a target, this is the target system image that will run on the virtual device.
The dropdown will list the target platforms that you installed earlier through the SDK manager.

There are some additional options that you can specify if you want to:

SD Card - this creates a virtual SD card for your virtual device at the size you specify.

Skin - this is the target device type / screen resolution.

Thats everything setup you are now ready to start coding your first Android application.

6
Comment
Author:Ross-C
4 Comments
LVL 31

Expert Comment

by:James Murrell
cool will give it a try later..... well written, will you be doing one on building  a small app
0
LVL 11

Author Comment

by:Ross-C
Many thanks, I appreciate the feedback. I will be writing an article on creating a small app in the next week or two.  
0

Expert Comment

by:RahulMEL
.
0
LVL 18

Expert Comment

by:Ravi Agrawal
All in all a very good article. Thanks for writing. I enjoyed it a lot.

Just a thought.

You could have also included dteps to enable the android virtual device to use virtualization from bios. And then enable it in eclipse.It will increase the speed of the emulator considerably.
0

Featured Post

Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Join & Write a Comment

When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month