Phone Accessories with the Android ADK

From CS294-84: Interactive Device Design
Jump to: navigation, search



In-class examples


Check out the latest example from the class SVN using:

svn co

Alternatively, download this file of rev192:

Android ADK

Overview - Software:

  1. Install Java.
  2. Install Eclipse.
  3. Install the Android SDK.
  4. Install the Eclipse Android ADT Plugin.
  5. Import the IOIO library and sample apps.
  6. Run the sample apps.

IOIO Hardware:

  1. Get a desktop power supply - adjust to 9V before connecting to anything, then turn back off.
  2. Solder female 0.1" headers to the IOIO board.
  3. Connect power to GND and VIN via stripped leads and alligator clips
  4. Connect to Android tablet or phone

Nexus 7 tablet hardware:

  1. Good idea to create a Google account for your group with a shared password known by all group members before first boot:
  2. To connect to AirBears, cancel the initial account setup by powering the tablet off, powering it back on, then exiting the Gmail setup. Now you can launch a full web browser and connect through AirBears with browser-based authentication.

Download a Java 6 Runtime Environment if you don't have it yet

Oracle's JRE and JDK downloads are here:

Apple's Java updater for OS X Lion is here:

Note that Android does not play will with Java 7 on OS X - download Java 6.

Download Eclipse if you don't have it yet and the Android SDK

Install Android SDK and Eclipse Android ADT Plugin

Import the IOIO Library

Load an example Application

  • To load a compiled and packaged apk file, enable USB debugging on your device (in Settings-Developer settings), connect it, and use the adb tool, which is installed (on OS X) in android-sdk-mac_86/platform-tools:
    ./adb install ~/Downloads/App-IOIO0324/HelloIOIO.apk
  • The "HelloIOIO" application just blinks the on-board LED.
  • To compile an Android app and load it onto your board, follow instructions in Ch. 2 of Simon Monk's book on IOIO.