- Download and untar/gzip the Android SDK
- Install the JRE
- sudo apt-get install icedtea6-plugin openjdk-6-jre openjdk-6-jdk ia32-libs
- Install ant
- sudo apt-get install ant
- Set your JAVA_HOME and CLASSPATH
- export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
- export CLASSPATH=/usr/lib/jvm/java-6-openjdk/lib
- Update the build tools
- cd android*; ./tools/android update sdk --no-ui
- Download eclipse (Helios release) (Note the one in the Ubuntu repositories doesn't seem to work)
- google-chrome www.eclipse.org/downloads/
- Untar eclipse
- tar -xvf ./eclipse*.tar.gz
- Install the eclipse Android plugin
- eclipse : Help -> Install New Software ...
- enter: "Android Plugin"
- enter: "https://dl-ssl.google.com/android/eclipse/"
- Select 'Developer Tools'
- Click "Next"
- Restart eclipse
- Select the Android SDK
At this point you should have the Android SDK and eclipse installed and configured for Android development.
Here are some notes on doing Android development if you prefer to live on the command line instead of living in eclipse.
- Create and Android Emulator
- cd android*; ./tools/android -> Tools -> Manage AVDs
- Start the Android Emulator
- cd android*; ./tools/emulator -avd
- Create a new Android project
- cd android*; /tools/android create project --target android-14 --name HelloAndroid --path ../HelloAndroid.git --activity HelloAndroidActivity --package com.mydomain.helloandroid
- Compile your project
- cd ../HelloAndroid.git; ant debug
- Push your project onto your running Android emulator
- ant debug install