How to run Android Market on the Emulator

During development, it is often useful to be able to test the Android Market from a device other than your own. However, by default the Android emulator doesn’t include the Android Market – nor offer an easy method of installing it. This tutorial will show you how to setup an Android Virtual Device (AVD) running Android 1.6 and the Market application.

Getting Started
This tutorial assumes you have the Android SDK installed and functioning, and have downloaded at least the basic Android 1.6 target. If not, complete these steps before continuing.

First, you’ll need to download the Android 1.6 system image file from http://www.4shared.com/file/165624746/fc72c3ed/system.html (this can also be found on the HTC website – look for Android Dev Phone 1). This is close to 60MB, so it might take a while to download.

While you’re waiting, start the Android SDK and AVD Manager, and create a new virtual device. Choose whatever name you like, and set the target as “Android 1.6”. I recommend selecting a 2GB SD card, and booting up the virtual device just to test and make sure it runs correctly.

Replacing the System Image
Now find the folder where your Android 1.6 system image is stored (not the folder for your AVD). Under Linux this will be <android-sdk-folder>/platforms/android-1.6/images/. Notice there is a system.img file in this folder. Copy this to a backup location, and paste in the file you just downloaded. This replaces the default Android 1.6 virtual machine with our new custom image, which includes the Android Market pre-installed.

Setting up the device
Using the AVD Manager to start up the virtual device. If all goes well, it will boot directly into Android, and let you choose to setup the device. Click through the tutorial, and when given the option to enter your Google account, choose “Skip“. We’ll complete that part later*. Finish the wizard.

Now you should see the home screen. Click the grey arrow at the bottom of the screen, and find the Android Market icon. Click to launch it.

Now you can fill in your Google account details. Use a different account than you have on your primary device (you might like to create one specifically for testing Android apps). Accept the terms and conditions, and you should be able to browse and download applications just like on a physical Android device!

Note: The Android Market will automatically update itself some time after linking to your Google Account. Don’t be surprised if it suddenly closes without warning – just wait a while and start it up again to continue downloading apps.

* When I tried to complete the initial setup wizard, I got stuck at a screen saying “slide out your keyboard to continue”. By skipping this step, and setting up the Google account later on I was able to avoid the issue.

Other resources:
http://www.howtogeek.com/howto/21862/how-to-enable-the-android-market-in-the-google-android-emulator/
http://techdroid.kbeanie.com/2009/11/android-market-on-emulator.html

  • Autoblogsucks

    retard post still at 1.6

  • totally misleading
    screenshot shows current market app
    instructions are two years old and won’t get you the current market app.

    • I tried this on my own computer – initially the older version of the Android Market was installed, but soon after linking to my Google Account, it automatically updated to the latest version. I took the screenshot with the newer version.

  • Michiels999

    Hi, thank you for this article. Do you know if there is a way we can install the emulator on a web page so that people can test an android before buying one? and install applications and test them?

  • great…it worked as a charm for me..

  • If you are developer who wants to integrate the  
    In-App billing into your application, it’s easier to use this test framework : android-test-billing to test the In-App billing on the emulator.
    The 
    android-test-billing
     framework was used in the project Horer – horaire de RER.

  • Tinka

    The shortcut to slide open the keyboard is Ctrl-F11 🙂

  • It is a
    very exciting news for me hearing latest and easier way on dealing with the
    android market. I can even survey and search on the emulator for better
    purposes. Keep posting more wonderful reviews on this matter.

  • Thanks mate for this awesome concept. I would like to allocate about the way to run Android Market on the Emulator. Thanks mate and more power.

  • Hassan

    Mensen meld je aan bij http://www.chiliwire.com/oussamaz1 en verdien snel geld! je hoeft er bijna niets voor te doenAlleen nieuwe vrienden uitnodigen en je verdien per aangemelde vriend en ook nog eens heel leuk,net als facebook, In een uur tijd heb ik al 60 euro verdiend come on meld je aan via deze link: http://www.chiliwire.com/oussamaz1nieuww hype waarbij de makers jou ook wat geld gunnen!!Nog veel verdiensten en Succes.ChiliwireninieuwChiliwire New Social Media

  • Jan Cleaude

    Is there any image available for a 2.1+ device?

    Thanks in advance,

  • idolleon

    Nice job!

    I want to suggest a download place to download more emulator apps: [AppStudo]
    Hope you can enjoy it!

    • Please don’t comment on every post here linking back to your website. There’s a section for self-promotion on the forums.