Installing Android

In prep for this week's lecture and a future homework assignment, you will need to get Android installed on a machine that you have access to. I worked my way through the steps to install Android at the beginning of the semester and here are the (minimum) steps you need to follow to get ready.

  1. Verify that you have the JDK installed. I have:

    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

    but these tools should be able to work on a range of JDK versions.

    To verify that you hava Java installed, open up a command-line terminal on your machine and enter the following command:

    “java --version”

    If you do not have Java installed, go to http://www.java.com/en/download/index.jsp to download it and follow the instructions to get it installed.

  2. Download the Eclipse IDE for Java EE Developers at <http://www.eclipse.org/downloads>. On Mac, double click the .tar.gz file and then move the resulting eclipse folder into your /Applications folder. You can then drag the icon for the Eclipse environment to the Dock. On other platforms, follow the instructions provided by the Eclipse Foundation.

  3. Download Android SDK at <http://developer.android.com/sdk/index.html>. I downloaded the file android-sdk_r08-mac_86.zip for MacOS X. You will need to download the file appropriate to the platform that you have access to. Unpack the archive that you downloaded and move it to a location in your home directory. I will now refer to that location as $ANDROID.

  4. Download a version of the Android platform. To do this, from the command line, execute the following command:

    $ANDROID/tools/android

    In the resulting application, click on Available packages to download an Android platform. I downloaded and installed the following packages:

    Android SDK platform tools, revision 1
    Documentation for Android SDK, API 9, revision 1
    SDK Platform Android 2.3, API 9, revision 1
    Samples for SDK API 9, revision 1
    Google APIs, Android API 9, revision 1

    Note: I do not intend to cover the recently released Android 3.0 platform. However, an enterprising group of students could decide to explore that platform for their semester project or an enterprising graduate student could decide to make Android 3.0 the topic of their presentation. (Hint, hint.)

  5. Install the Android plug-in for Eclipse by following the instructions at <http://developer.android.com/sdk/eclipse-adt.html>

  6. Configure the Android plug-in using the instructions labelled “Configuring the ADT Plugin” on the page listed above in step 5.

  7. There is no step 7.

Let me know if you have any questions.

© Kenneth M. Anderson, 2011