Android SDK Setup with Market

These are general instructions to install the Android SDK with an emulator running the Market. For detailed instructions on how to get the SDK installed, please refer to the other OS specific tutorials.

WARNINGS

  • On Windows 64bit, the Android SDK will not recognize the Java JDK 64 bit. You will have to install the 32bit version of the JDK or find yourself a workaround.
  • You can run the emulator directly from the Android SDK Manager or through the Eclipse plugin. If you have problems with the SDK Manager then use Eclipse. You will have to use it anyway to develop your own application later in the semester.

INSTRUCTIONS

SDK Installation

  1. Install the latest Java's JDK (Includes JRE) from http://java.sun.com/javase/downloads/index.jsp
  2. Install Eclipse IDE for Java Developers from http://www.eclipse.org/downloads/ (if you already have Eclipse on your machine, make sure it is the latest version: Eclipse 3.6 Helios - as of January 2011)
  3. Download and install the latest version of the Android SDK at http://developer.android.com/sdk/
  4. Set up an Android Virtual Device (AVD) following the OS specific instructions on http://www.cs.uic.edu/bin/view/CS422/Android . Beware that the first time you load the emulator it may take several minutes to launch. Just be patient. Also, if you get an error when starting the AVD, read the troubleshooting below before trying to solve your problems with an online search.
  5. At this point you should be able to run the emulator and play with it. Continue to the next point only if are able to run the emulator.

Android Market Installation

  1. Go to this page and follow the "Link for 1.5 image" http://techdroid.kbeanie.com/2009/11/android-market-on-emulator.html . This will download a new AVD that contains the Android Market which will allow you to install any app on your emulator.
  2. To run the new AVD follow the instructions on this page http://www.howtogeek.com/howto/21862/how-to-enable-the-android-market-in-the-google-android-emulator/ . When you start the AVD for the first time, make sure to check the option "wipe user data".
  3. You should now be able to run the emulator. When asked to enter your Google Account, simply skip the process. Then open the Android Market and follow the instructions to access to the list of app you can install.
  4. Now install an app and wait for it to install (you will notice a new icon on the top bar). When it has finished to install, you will find your app in the app menu that opens clicking on the tab on the bottom of the screen. Note that by default the emulator will not provide GPS coordinates to the app, making it impossible for location based apps to work properly. If you want to use location based apps, it is best to run the emulator from the Eclipse plugin where you can specify the GPS coordinates to send. A simple online search should explain how.

TROUBLESHOOTING

My OS is 64 bits and the Android SDK Manager cannot find my Java SDK

The Android SDK will not find the Java SDK 64bit; try to install the 32bit version.

The Android SDK Manager cannot find the AVD I just created

This can happen if the ./android folder is created in the wrong place, maybe because you changed the default position of your user folder. If this happens on Windows, then copy the ./android folder into your original user folder (C:\Users\<your_user_name>\ for Windows Vista and 7, C:\Documents and Settings\<your_user_name>\ for Windows XP).

Topic revision: r1 - 2011-01-12 - 18:44:54 - Main.atrett3
 
Copyright 2016 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF