CSE 461: Introduction to Computer Communication Networks, Spring 2012
  CSE Home   About Us   Search   Contact Info 
 
Course Home
  Home
Administration
  Overview
  Course email
  Anonymous feedback
  View feedback
 
Assignment Utilities
  Home Virtual Machines
  Homework Turnin
  Class GoPost Forum
  Gradebook
 
Most Everything
  Schedule
  Hw/Project List
    Project 1: Eclipse + Android Setup
Out: Monday March 26
Due: Wednesday April 4 (midnight)
Turnin: Online
Teams: Pairs


1. Choose a Build Platform

Every individual should set up a build platform. It's not a team platform, it's the platform you're going to work on.

The officially supported platform is Linux. The tools should work on Windows and OS X as well, but we won't be testing any course software there.

Setting up your build environment requires the work below. It's not something you're going to want to do too many times, so it makes sense to set up now the system that you think will be your primary platform for 461 work.

I advise against the use of a shared machine, like attu, unless you really have no good alternative. There are three reasons:
  1. The Android emulator runs slowly unless it has adequate processor and memory resources. If a lot of people are running the emulator at once, they're likely to experience bad performance, as may everyone else on the machine.
  2. I've seen some indication that if someone is running an emulator when you try to start one, you'll run into problems. It looks like the problems can be addressed, but it's an additional complication.
  3. You can't plug the physical phone into the shared machine, so can't run on the phone. (There may be a way, but I don't know how.)

2. Eclipse + Android Setup

Note: "an error about requiring org.eclipse.wst.sse.ui"
If you encounter "an error about requiring org.eclipse.wst.sse.ui" when trying to install the Android plugins to Eclipse, you can fix it by following the additional step described here.

You will encounter this error on CSE Linux machines, including the CSE Home Linux Virtual Machine. (Fixing it on those machines is part of the procedure given below.)

On Non-CSE Machines

Follow the instructions that start here. Unless they're already installed on your development system, you will end up having to install:

  1. Eclipse Classic
  2. The Android SDK.
  3. The ADT Eclipse Plugin
  4. When you've done that, you'll have the Android 4.0.3 SDK installed. Our phones run only Android 2.3.5, so you need to install an SDK that can run on that release.
    • In Eclipse, select the Window menu, then Android SDK Manager.
    • Scroll down until you see Android 2.3.3 (API 10), and expand it by clicking on the arrow on the left.
    • Check the boxes for SDK Platform and Samples for SDK.
    • Click on the Install button on the lower right.
    • A new dialog appears. Click to start the component installation.

On the CSE Home Linux VM

The CSE Home Linux Virtual Machine has Eclipse already installed. You should follow the instructions above, for non-CSE machines, except that you can skip step 1. (You will need to install the fix noted in the box.)

On Real CSE Linux Machines

"Real CSE Linux Machines" include lab workstations and the attu's. For those machines, Eclipse is already installed and the Android SDK already downloaded. That means you have to perform only step 3 of the instructions above.

Because of disk space limitations, I've installed a shareable copy of the Android SDKs at /cse/courses/cse461/android-sdks/. That allows you to proceed directly to step 3, which begins by executing the procedure referred to in the boxed note above about fixing an install error. You must cut-and-paste the URL given in the instructions for Helios. Once the lower text area of the dialog is populated with package names, you can move right on to installing the ADT Eclipse Plugin (Step 3) - type the URL shown in the "Downloading the ADT Plugin" section into the Add box, over the top of the one you typed for the fix, then check the box next to the package name that eventually appears in the lower text area, and then click Next (and do the obvious things after that).

When you're done, Eclipse will ask to restart. Restart it. When it comes up, it should ask you where to find the Android SDK. (If not, follow the instructions in the "Configuring the ADT Plugin" section of the ADT install directions page.) Give it the /cse/courses/cse461/android-sdks path.

3. Verifying the Setup

The easiest way to verify that things are okay is to proceed on to installing the Project 1 software.


Computer Science & Engineering
University of Washington
Box 352350
Seattle, WA  98195-2350
(206) 543-1695 voice, (206) 543-2969 FAX
[comments to zahorjan at cs.washington.edu]