Android

Setup Android Honeycomb Development on Ubuntu in Eclipse

Here are the steps that you will want to take to start Android Honeycomb development on Ubuntu (or even Windows for that matter). This guide assumes that you have an internet connection and Eclipse: Helios installed:

  1. Goto the Android Developer pages and Download the SDK.
  2. Install the SDK and place it in a location in your filesystem. (Remember this location because later, it is required to setup the Eclipse ADT plugin)
  3. Run the SDK manager and install all of the avaliable Android packages; this may take some time depending on your internet connection speed.
  4. Fire up Eclipse Helios and goto: Help -> Install New Software…
  5. In this section you will want to add two new repos to Eclipse and they can be found on this google code page and the ADT repo from the Android developer pages. Instructions are provided in the links.
  6. The second repo that you installed contains the ADT plugin; select that repo from the list and install the ADT plugin. Once you are done you will be prompted to restart eclipse which you should do.
  7. Once Eclipse has restarted you will want to let the ADT plugin know where you installed the SDK. To do this go: Windows -> Preferences and then Click on the ‘Android’ preference tab; a window should appear that asks you for the ‘SDK Location’. Put the filesystem location of the Android SDK in that box and hit apply. If many targets appear after a few seconds then you have done it correctly. Now press OK to exit the Preferences.
  8. Go back and run SDK manager again. In here create an Android virtual machine for the type of Android Project that you would like to develop. Remember that the more RAM that you give the VM the better but the emulator will probably still be slow; try and mirror a real device.
  9. In Eclipse, press Ctrl+N and create an Andriod project from the menu. First select the version of the SDK that you would like to use and then I recommended selecting one of the test projects that are avaliable for that SDK.
  10. Run the project from the eclipse run menu as an Android Project and watch it run in an emulator.

And that is all that there is to it. Perhaps a few more steps than you would expect but once you are done you will have a complete Android Honeycomb development environment. If you have any questions or want clarification then please ask it in the comments.

Advertisements