Back

TechnologySep 17, 2009

Setting up the Google Android Emulator in 5 minutes

Credera Team

If you need access to the Google Android web browser for testing or want to test drive other functions of the device, you can easily get started with the default software build from the SDK.  It’s free and doesn’t require any registration or code compilation.

The setup is not quite intuitive but it’s really simple if you know what to do.

Do these steps once:

1. Download the Google Android SDK from http://developer.android.com/sdk/

2. Unzip the SDK

3. Make sure you have JDK 5 or JDK 6 installed

4. Make sure your JAVAHOME environment variable is set to the JDK 5 or JDK 6 path

5. From the Tools directory, create a virtual device named “mydevicename” with the following command:

[code]android create avd -n mydevicename -t 1[/code]

6. “Do you wish to create a custom hardware profile [n]” — Press enter to accept the default.

Do this step whenever you want to use the emulator:

7. From the Tools directory, launch the emulator with the following command:

[code]emulator @mydevicename[/code]

When you launch the emulator, you will see “ANDROID” displayed on the virtual screen.  The virtual device takes a minute to begin the boot process.  Once you can see the home screen, you should be able to launch the browser, which will automatically connect to the Internet using your network connection.

That’s it. Please note that I created these instructions using Android SDK version 1.6_r1, the newest available version as of Sep. 17, 2009.