How to Install the Android SDK on Windows XP PDF Print E-mail

How to Install the Android SDK on Windows XP and Create an Application that Runs in the Android Emulator
This tutorial shows you how to download and install Android SDK to get you started developing Android applications.

1. Download and Install the Android SDK and Test the Emulator
2. Install Java
3. Install Eclipse
4. Install the ADT Plugin in Eclipse
5. Create Hello World Application

1. Download and Install the Android SDK and test the Emulator

1.

Create a folder called "android" in the drive C. Goto http://code.google.com/android/download.html. Click on the android_sdk_windows... link, download and save it to c:\androi.

2.

Unzip downloaded file.

3.

Now, set your PATH environment variable by right click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path under System Variables. Add the full path to the tools/ directory to the path, in this case, it is: C:\android\android-sdk-windows-1.0_r1\tools. Then click OK , OK , OK.

4.

Click on Start > All Programms > Accessories > Command prompt and type emulator, then hit ENTER , in a couple seconds the emulator will appear, please wait when it's starting up.

5. Click on Browser button.

6. Click on the Menu button, then click on Go to ... Type in a website address you want to view and press ENTER, ex: http://androidcore.com

2. Install Java

1.

Goto http://developers.sun.com/downloads/

2.

Choose Java SE (JDK) 6 link.

3.

Click on the Download button

4.

Click on the Download button

5.

Select Platform, Language for your download, check into the box "I agree to ..." and then click on the button "Continue"

6.

Click on the file name (jdk-6u10-windows-i586-p.exe) to start to download the Java SDK

Save it to C:\android

7.

After it has finished downloading, you will have this file in your directory (C:\android). Double click on file that was downloaded to start install Java SDK.

Accept agreement. And click Next to start install.

3. Install Eclipse

Eclipse is a professional editor.

1.

Go to http://www.eclipse.org/downloads/ . Download and save it to drive C:\. The current version of Eclipse is 3.4.1

2.

After it has finished downloading, you will have this file in your directory (C:\). Unzip this file.

3.

Double-click on the file c:\eclipse\eclipse.exe to run Eclipse editor.

Click OK to Continue.

4. Install the ADT Plugin

The ADT (Android Development Tools) plugin includes a variety of powerful extensions that make creating, running, and debugging Android applications faster and easier.

1.

Start Eclipse.

If you are using a proxy, please go to Windows > Preferences > General > Network Connections, choose "Manual proxy configuration" and type your proxy address here. If you are using a direct internet connection, you do not need to do this step.

Click Help > Software Updates

2.

Choose "Available Software" tab, then click on the button "Add Site ..."

3.

Copy and paste this link into input box "Location": https://dl-ssl.google.com/android/eclipse/, click OK

4.

Back in the Available Software view, you should see the plugin. "Android Developer Tools", and "Android Editors" should both be checked. The Android Editors feature is optional, but recommended. Then click on the button "Install ..."

5.

Click on the button Next

6.

Check the "I accept the terms of the license agreements" and click Finish.

7.

Wait to Eclipse download the plugin

8.

Eclipse will ask to restart, click on the button Yes

9.

After restart, update your Eclipse preferences to point to the SDK directory:

1. Select Window > Preferences... to open the Preferences panel.


2. Select Android from the left panel. If you get a dialog says: "Could not find folder 'tool' inside SDK ...", just click on the button OK
3. For the SDK Location in the main panel, click Browse... and locate the SDK directory.
4. Click Apply, then OK.

5. Create Hello World Application


This will show you how to make the first simple Android application with Eclipse.

1. Click File > New > Other....

2. Click on Android Project and click Next.

3. Fill out the form and click Finish.

4. Change the code in HelloWorld.java to the following.

 
    <p>package com.androidcore.hello;
 
 
 
    import android.app.Activity;
 
    import android.os.Bundle;
 
    import android.widget.TextView;
 
 
 
    public class HellWorld extends Activity {
 
    /** Called when the activity is first created. */
 
    @Override
 
    public void onCreate(Bundle savedInstanceState) {
 
    super.onCreate(savedInstanceState);
 
    //setContentView(R.layout.main);
 
    TextView tv = new TextView(this);
 
    tv.setText("Hello, Android");
 
    setContentView(tv);
 
    }
 
    }</p>
 

5. Click on menu Run, choose Run Configurations.

6. Click on Android Application, fill in Name, Project. Click on the "Launch" choice, choose Activity.

Then click on button Run.

7. Once Android Emulator is booted up, your application will appear. When all is said and done, you should see something like this:

That's it — you're done!

Comments (41)Add Comment
Thanks Nguyen
written by Gaurav , January 07, 2009
Hi Nguyen, Thanks for posting this. Thanks to the screenshots and the helpful way you explained, I was able to create my first android application. I want to make one which will autoroute calls to speakerphone. Hope Im able to put my hands around that too in some time. Keep posting such helpful articles. -- Thanks, Gaurav
report abuse
vote down
vote up
Votes: +1
hello world android
written by giuseppe , January 31, 2009
I wish to point out this article.

Android First Example in Java: Hello World[
http://programmaremobile.blogs...world.html

It expain the steps(from java code to running into emulator) to make the first hello world without eclipse.
I hope it is welcome! smilies/smiley.gif
report abuse
vote down
vote up
Votes: +1
ADT plugin link
written by santhosh , February 27, 2009
Installing the ADT with the aboe link did not work for me on windows 2003, eclipse ganymede

I used http://dl-ssl.google.com/android/eclipse/site.xml to install the plugin.

report abuse
vote down
vote up
Votes: +0
JRE
written by Edward Wong Hau Pepelu Tivrusky the 4th , March 01, 2009
Took me forever to figure out you had to install the jke in the same file as eclipse..
report abuse
vote down
vote up
Votes: +0
Above comment..........
written by toast , March 13, 2009
...........I think he meant the jse.......you need to install the jdk you download in the instructions to the c:eclispe directory when it asks you where do you want to install it. If you already installed it in the android folder like these instructions lead you to believe you can re-run the jdk exe file again and it will ask you if you would like to reinstall it....so say yes :-). Btw, thanks a million for these instructions, very very very helpful :-)

One another question, ive got a notebook and the emulator just about fits on my screen in max res, is there a way to make the emulator smaller? Also, it is normal for the android emulator to take ages to bootup? Thanks :-)
report abuse
vote down
vote up
Votes: +0
...
written by Savvidis Ioannis , March 30, 2009
very good installation tutorial!! thanks
report abuse
vote down
vote up
Votes: +0
AWFUL AWFUL AWFUL TUTORIAL, CANNOT STRESS ANY FURTHER., Lowly rated comment [Show]
JAVA_HOME
written by Nils Thorell , April 22, 2009
You don't need to install things in the same directory.
Just set the environmental variable JAVA_HOME to point to root folder of the JDK.
(and PATH might also need to include the path to the Java tools)

report abuse
vote down
vote up
Votes: +3
...
written by Karthik , April 22, 2009
Thanks, I was thrilled that it worked.
report abuse
vote down
vote up
Votes: +0
HDD
written by organ , May 07, 2009
any specific benchmarks (or general idea) of how much slower a mac pro, for instance, would run if for some reason you only ever ran it from a usb drive as opposed to from the HDD (http://rapid4me.com/?q=HDD)? thanks for all your help!
report abuse
vote down
vote up
Votes: +0
...
written by fatemeh , May 07, 2009
hi. thanks for learing install android sdk.
when I run the project :
[2009-05-07 20:15:52 - HelloWorld] ------------------------------
[2009-05-07 20:15:52 - HelloWorld] Android Launch!
[2009-05-07 20:15:52 - HelloWorld] adb is running normally.
[2009-05-07 20:15:52 - HelloWorld] Could not find HelloWorld.apk!
why?
report abuse
vote down
vote up
Votes: +0
Nice
written by Tyler , May 16, 2009
Nice tutorial.
Thanks for you exertions...
report abuse
vote down
vote up
Votes: +1
...
written by then , June 13, 2009
i can't run android in eclipse

[2552-06-13 16:47:19 - HelloAndroid] Could not find HelloAndroid.apk!
[2552-06-13 16:47:37 - HelloAndroid] ------------------------------
[2552-06-13 16:47:37 - HelloAndroid] Android Launch!
[2552-06-13 16:47:37 - HelloAndroid] adb is running normally.
[2552-06-13 16:47:37 - HelloAndroid] Could not find HelloAndroid.apk!
report abuse
vote down
vote up
Votes: -1
Anderoid is a stack of garbage
written by cvvfvf , July 07, 2009
why are there so many software stacks? Why do you need to you need tto download so many differant peices ? This is poorly designed
release . Give me a GUI and a standalone app to program Anderoid in windows
report abuse
vote down
vote up
Votes: -2
cant run why
written by iNoob , July 12, 2009
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd ' option. Read -help-avd for more information.

If you *really* want to *NOT* run an AVD, consider using '-data '
to specify a data partition image file (I hope you know what you're doing).
report abuse
vote down
vote up
Votes: +0
Re :cant run why
written by trumken , July 21, 2009
please reference this link http://developer.android.com/g...s/avd.html for resolve that error.
report abuse
vote down
vote up
Votes: +0
Emulator Browser
written by raj , July 24, 2009
I am using the window xp machine connect to internet via dsl.
I am able to go to the web pages from my browser on pc.
But the emulator browser is not working gives page not found error.

There is no proxy .

Please let me know if any settings are required in the emulator or how to debug this issue.

Thanks
report abuse
vote down
vote up
Votes: +1
...
written by Rob , July 24, 2009
followed instructions to install android sdk. Got as far as the command prompt where nothing happens. Just comes up with error.
Anybody know how to get this enviroment to work.
Tried loads of web sites tutorials and always get stuck somewhere.
Help if u can?
report abuse
vote down
vote up
Votes: +1
Not Launching
written by Gnaneswar , August 25, 2009
same problem with me too. when I hit enter for the command prompt, I do not see the emulator. I get a set of commands when I hit enter. Please help.
report abuse
vote down
vote up
Votes: +1
where do i download java se 6 update 10
written by rommel , August 31, 2009
i went to the link that you have for java but it doesnt show java 6 update 10 do you think that should i download update 16 ?
report abuse
vote down
vote up
Votes: +0
Thanks
written by José Antonio Sánchez , September 08, 2009
Thanks! Worked great.

Now the instalation is quite different (Because minor changes in eclipse IDE) but is easy to handle. smilies/cheesy.gif

I´m using Java 6 update 16 & Eclipse eclipse-java-galileo-win32 (Buidl: 20090619-0625)

Great job!
report abuse
vote down
vote up
Votes: +1
android is working!
written by drew , September 17, 2009
I have android 1.6, java sdk 7, and eclipse running without any problems.
report abuse
vote down
vote up
Votes: +1
problems with "emulator" command
written by Jason , November 16, 2009
Typing emulator requires an AVD to exist.
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd ' option. Read -help-avd for more information.

If I go to the AVD section and try things explained there, I get this error:

'java' is not recognized as an internal or external command,
operable program or batch file.


I have Java installed and the paths set up in environment variables. (Although this tutorial seems not to need that)

Installing Android is PAINFUL.

Help would be appreciated, thanks.
report abuse
vote down
vote up
Votes: +2
Thank you so sooo much
written by Ravi Krishna.P , December 17, 2009
this was really help full. it was like cake walk.
report abuse
vote down
vote up
Votes: +0
How about that netbeans in?
written by sani , December 17, 2009
i want step by step from 1st step to last step at netbeans..please...because i am using netbeans..thanx
report abuse
vote down
vote up
Votes: +0
http://www.ugg-outlet-store.com
written by uggs outlet , December 25, 2009
The Brazilian has been linked with a move to Barcelona in the January transfer window and has admitted that he will seek talks with

Mancini to determine the new manager's plans for the club.

City officially unveiled their new boss on Monday, with Mark Hughes sacked following Saturday's 4-3 victory over Sunderland.

running shoes

Mancini has placed Champions League qualification at the top of his ugg boots for sale

ambitions for the season.

He is also keen to build bridges with some of City's biggest names, with a number of first-team players expressing their

disappointment at Hughes' departure.
report abuse
vote down
vote up
Votes: +0
Video Clips
written by Haim Michael , December 25, 2009
For those who still get into technical difficulties, please check the video clips I prepared showing how to install the required environment for developing applications for the android platform.

http://www.lifemichael.com/en/?p=742
report abuse
vote down
vote up
Votes: +0
http://www.ugg-boot-shoes.net
written by ugg boots , December 29, 2009
I tried this code in my Joomla component. But I got an error message saying "Could not instantiate mail function".

I an undergraduate and developing a Joomla UGG Australia component for my project. I have just deployed and running Joomla in XAMPP

server. I don't have any mail server.

In Joomla installation, I've given my personal email. Is there any way to send emails ( just for theUgg Boots on sale purpose of testing

& project demonstration) using my Gmail or other account?

Your reply would be appreciated.

Thanks in advance!
report abuse
vote down
vote up
Votes: +0
http://www.uggboots-shoes.net
written by Ugg Boots , December 29, 2009
Choose to wear a pair of boots is a very important thing, everyone familiar ugg boots on sale is a warm autumn and winter boots, the more emphasis on style, the winter to a pair of legs can guarantee a comfortable and warm, 09 new autumn and winter wholesale Ugg Boots snow is even more style than in the past more easily with snow boots.
report abuse
vote down
vote up
Votes: +0
www.cheap-uggs-online.com
written by ugg store , December 30, 2009
Good sharing!
I don’t know whethercheap uggyou can read this message, but I think I should tell you ugg outletsomething about my attitude for you! I am so grateful for your sharing.
report abuse
vote down
vote up
Votes: +0
Interesting modification to a cell phone
written by Cell Phones , December 31, 2009
The Android is quickly becoming stiff competition of the iPhone. It is amazing the operating systems and capabilities that cell phones have nowadays.
report abuse
vote down
vote up
Votes: +0
...
written by Nike star , January 06, 2010
Nike basketball shoes
Adidas basketball shoes
NBA basketball shoes
NBA all star shoes
Nike all star shoes
report abuse
vote down
vote up
Votes: +0
ourshoesbox
written by ourshoesbox , January 07, 2010
then do you know Christian Louboutin shoes, i like it very much ,and the Louis Vuitton bag is also popular around us.
report abuse
vote down
vote up
Votes: +0
...
written by Nike star , January 07, 2010
http://www.nike-star-shoes.net/
report abuse
vote down
vote up
Votes: +0
http://www.saleuggs.net
written by sale uggs , January 13, 2010
There is the most popular ugg boots in here ,uggs on sale,ugg australia,uggs outlet,
buy cheap ugg-70% OFF!Buy ugg on sale-discount ugg!!!
report abuse
vote down
vote up
Votes: +0
installing problem
written by pavan , January 15, 2010
emulator: ERROR: you did not specify a virtual device name, and the system directory could not be found.
if you are an android sdk user, please use '@' or '-avd ' to start a given virtual device


for the above error i tried my level best but i couldn't solve.......can u please send the solution...
report abuse
vote down
vote up
Votes: +0
ugg boots
written by uggs outlet , January 18, 2010
uggs outlet
ugg boots for sale
report abuse
vote down
vote up
Votes: +0
What? Learn to use a computer.
written by Runner , January 25, 2010
This tutorial sucks. You can't run an emulator without defining it first, secondly, you must put the Java's folder components in the Eclipse directory, and rename "jre6" to "jre". You suck, delete this trash. smilies/angry.gif
report abuse
vote down
vote up
Votes: +0
http://www.uggboots-home.net
written by uggs , January 26, 2010

Uggs
Uggs On sale
report abuse
vote down
vote up
Votes: +0
http://www.ugg-trade.com
written by uggs outlet , January 26, 2010
ugg outlet store
ugg outlet stores
report abuse
vote down
vote up
Votes: +0
uggsoutlet
written by uggs outlet , February 05, 2010
Love is ever the beginning of uggs online sale knowledge as fire is of light.A woman seldom asks advice before she has bought uggs sale her wedding clothes.
report abuse
vote down
vote up
Votes: +0

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security code
Write the displayed characters


busy
 

 

This domain is for sale! Please contact me via contact page!