These instructions are outdated and need to be updated. They will not work unless the sdk is installed in a course folder, in this case, it was installed in the i100 folder but the i422 folder should be used.

To use the android sdk from your linux account, you must have an X11 (Windowing system) available. This is not a problem if you are physically present in the Linux lab, however, if you intend to remotely connect from home, make sure you have an X server running have enabled X11 forwarding.

To setup get started with the android sdk in linux, open the terminal, located in Applications -> Accessories -> Terminal.

To open eclipse, the programming IDE, type the command:
~i100/eclipse/eclipse

This starts the program. When asked about a workspace, just hit OK.

You will then load Eclipse. It may ask about usage statistic uploading for both eclipse and the android sdk. You may configure either for your preference to either allow or disallow it, it does not matter.

Click on Window -> Preferences and select the Android section on the left. Ensure the path on the right to the SDK location reads:
/mnt_nfs/home4/instruct/i100/eclipse/android-sdk-linux_86

If it does not, paste in the above folder and click OK.

The SDK should then be setup. Make sure to create an AVD device so that you can test your code and then you can make projects! Don't forget to click on the arrow on the right hand side of the screen to go to the workbench! You are then able to make android projects. When you launch your code, make sure you run it as an Android Application as well. It may take the emulator a little while to load. After you have setup everything this time around, in the future, you only need to type ~i100/eclipse/eclipse in the terminal to begin working again. Nothing else will need to be setup.

Creating an Android Virtual Device

  1. In Eclipse, click Window -> Android SDK and AVD Manager.
  2. Click Virtual Devices on the left-hand side.
  3. Click the New... button on the far-right side.
    1. Name - Give your virtual device a name, like Android2.1.
    2. Target - Select Android 2.1 - API Level 7.
  4. Click Create AVD.
  5. A pop-up will appear with the results. Click OK.
  6. Close the Android SDK and AVD Manager.
Topic revision: r2 - 2011-10-24 - 16:26:48 - Main.cpable2
 
Copyright 2016 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF