Good Luck! Subscribe to my most-recent-items feed and know when new tutorials are posted: My Other Tutorials: How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE How to Create a Website with Datapod Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite Install Fedora 6 in VMWare on Windows XP and connect it to your network Install Perl 5 on Windows XP and Get a Perl Hello World Running Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network   |
T U T O R I A L
How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator This tutorial shows you how to download and install Android to get you started developing applications for it. This workshop has a screenshot and comment box on each step. You can post without registering. Good luck!
| 1. |
|
|
|
| 2. |
Unzip the SDK where you downloaded it. post comment or questionpost comment or question |
|
|
|
| 3. |
Copy all unzipped files to
c:\android. | post comment or questionpost comment or question |
|
|
|
|
| 4. |
Set your PATH environment variable by doing this:
> > > > >
, in the
System Variables box, click
Path and the
Edit button, then go to the end of you PATH variable, and type
;c:\android\tools
and then click
OK
,
OK
,
OK
. | post comment or questionpost comment or question |
|
|
|
|
| 5. |
Click on
> > >
and type
emulator
and hit
ENTER
, in a couple seconds the emulator will appear, leave the check checked and click
Proceed .  aaronferrucci: If your computer is old/slow, it may take a while for the emulator to come up. Enjoy the cylon display while you wait. Joe: In my command prompt, I get an error message "Cannot create data directory: .... please specify a writable directory with -datadir.
Any help?  | Jeff: I was able to get it working by specifying a directory via -datadir
I used c:\android\temp\ |
 | Paul: Me too... I created them manually, which allowed the emulator to start, but all it says is "A N D R O I D " and won't do anything else... |
 | David: Paul I have the exact same thing, any work arounds? |
 | Girish: I created a temp dir. But still tat doesnot work |
 | Girish: it says "A N D R O I D " and and i cant use anything else... |
 | Jim: I did this as well it got to the "A N D R O I D" part. I had to wait about 1 full min for it to respond. It did. |
 | NAF: I got the same 'ANDROID' display. But after waiting a while, my app finally ran (I got Core 2 Duo 1,8GHz). Maybe just be a little patient, it takes some time. |
 | Jess: I'm still not sure how you create them manually could i get someone to explain a little more? thanks |
 | jess: I mean I got c:\android\tools but i still don't know where to go from there to get the emulator.exe to run |
 | Hamed: for the error in command prompt ""Cannot create data directory: .... please specify a writable directory with -datadir." I created the directories mentioned in the path above this error manually. for example the path for me was like this: "C:\Documents and Settings\Administrator\Local Settings\Application Data\Android\SDK-1.0" then u just need to go to MyComputer and follow this path "C:\Documents and Settings\Administrator\Local Settings\Application Data\" then there creat the new folder "Android", go to Android folder and creat the new folder "SDK-1.0" . then just go to command prompt and type emulator. it worked for me like this and the Android Emulator appeared on the screen. but u have to wait a little bit till the menu appear after android logo. hope this helps :) |
 | sikus: I did in folder "SDK-1.0" .bat file and there I wrote "-datadir C:\android\". This is folder where I have unzip SDK for Android. |
PW: Jess:
Create them manually in the command prompt
by typing the following:
C:\>emulator -datadir c:\android\temp post comment or questionpost comment or question |
|
|
|
|
| 6. |
Click on the browser button. post comment or questionpost comment or question |
|
|
|
| 7. |
Click on the "quick links" icon and press
a . post comment or questionpost comment or question |
|
|
|
| 8. |
Type in a website address you want to view and press
ENTER . | post comment or questionpost comment or question |
|
|
|
|
Go to the next section:
|