Howto Install and Run the Android Emulator
I am in the process of building some mobile apps for one of my clients, and while I'm pretty familiar with running the iPhone simulator and building iPhone apps, I'm pretty new to the Android development tools at this point. So I thought I would give a quick and easy guide for folks to follow, that might be interested in getting started with Android Development and running the Android Emulator.
I should mention that there is also an Eclipse Plugin for Android Development as well that you can use instead. Also, I'm using a Mac, but I think the steps should be pretty close if you are running Windows or Linux.
Step 1 - Download the Android SKD
Download the Android SDK, and unzip it somewhere. I placed the android-sdk-mac_86 folder in my /Applications/ folder, but you can put it wherever you want.
Step 2 - Optional Add to System Path
Since we are using the command line you might find it useful to add the android-sdk-platform/tools folder to your system path so you can run the android commands from any folder. If your interested in doing that, Google provides instructions here.
Step 3 - Install Android Platforms
At this point, I tried running the emulator command, but the SDK doesn't contain any Android Platforms, the Android platform is essentially Android OS, you need to install at least one version (eg 1.6, 2.1, 2.2, etc) to run the emulator.
To install platforms run the android command located in the tools folder of the SDK (use Terminal.app on a Mac, or the Command Prompt on Windows, Linux folks you know what to do :). This will pop up a window. Select Available Packages, pick some platform versions and install.
Step 4 - Create a Virtual Device
Still in the android tool, click on Virtual Devices on the left, and then click New. Here's an example of the settings for the new device:

Once you create the avd file, it should show up in the listing of Android Virtual Devices:

Step 5 - Run the emulator
Now select the virtual device you just created and click Start on the right, and the emulator should start running:

Tweet
Related Entries
- Building iPhone Android Apps with jQuery Mobile and PhoneGap Slides - January 12, 2011
- HTML5 Input Type Keyboards on iPhone & Android Devices - November 15, 2010
- Getting Started with jQuery Mobile - October 29, 2010
Trackbacks
Comments
So if you happen to see similar behaviour when you first install Android SDK, check Java JRE/JDK is installed and the directory it was installed in is included on the PATH environment variable.
Download the Android SDK, PROOFREAD!
What you need to do is move your SDK to a folder without spaces to the path.. so.. c:\android-sdk would work..
c:\program files\android-sdk would NOT work
Starting emulator for AVD '40And4' Failed to create Context 0x3005 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB emulator: emulator window was out of view and was recentered
Post a Comment
Recent Entries
- Writing Secure CFML cfObjective 2013 Slides
- Upgrading to Java 7 on Linux
- J2EE Sessions in CF10 Uses Secure Cookies
- Learn about ColdFusion Security at cfObjective 2013
- Session Loss and Session Fixation in ColdFusion
- FuseGuard 2.3 Released
- CKEditor Spell Checker Plugin
- Adobe Says Go Ahead and Upgrade your ColdFusion JVM


add to del.icio.us


