I recently installed eclipse 3.6 and Android Development Tools (ADT) on my fresh Ubuntu 10.04 install. I followed the excellent and simple Installation tutorial here. Installing Eclipse is as easy as downloading it from the official Download page (http://www.eclipse.org/downloads/) and extracting it to a desired folder. I chose the Classic Eclipse 3.6 download and I created a folder in my home, called /home/thierry/Applications.
To install the ADT in Eclipse 3.6, the official instructions can be found here, go to HELP > INSTALL NEW SOFTWARE. Enter the address to WORK WITH:
https://dl-ssl.google.com/android/eclipse/
Click OK. Then Select ‘Developer Tools’ to install Android DDMS and ADT. Then click NEXT followed by FINISH. At that point I am now sure if I had to restart Eclipse, but as it is suggested, do restart Eclipse.
Start a new Android project under FILE > NEW > Other > Android. The Project Name would be HelloWorld, as Build Target I choose Android 2.2. Scroll down to find the Application Name: Hello Android and the package Name: com.yourexample.helloandroid. A first Hello World program is as follows
package com.example.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
tv.setTag("Hi freaks, look at me");
tv.setText("Mama");
tv.s
setContentView(tv);
}
}
To run the code and test the application, you don’t need to have an android device, but you can use the android emulator. Use RUN > RUN AS > ANDROID APPLICATION and the emulator should show up, it might take 1 minute to boot!
Of course this is not what you have done in your HelloWorld, but to test your Android application you need to boot Android first. Play around with Android and go to Applications to find your Application called Hello Android. Click it to launch your Hello World.
P.S.: I have a problem that auto-complete in Eclipse with ADT freezes as soon as for example “tv.s” is written in the editor. Apparently this bug is related to xulrunner, but not for sure. This bug is however very annoying making development impossible. For a Java file the auto-complete is however working fine.
Where to go after the HelloWorld? Go to the official documentation site for Android project, the page with sample code,


