Monday, August 24, 2009

Tools for Android development on Ubuntu 9.04

1. Install Sun Java tool kit 6:

sudo apt-get install sun-java6-jdk

2. Verify the Java version:

java -version
javac -version

3. Download Android SDK, android-sdk-linux_x86-1.5_r3.zip, from http://developer.android.com/sdk/1.5_r3/index.html, and extract to /usr/local/lib. Update the ~/.bashrc to append the Android SDK tools to $PATH:

export PATH=$PATH:/usr/local/lib/android-sdk-linux_x86-1.5_r3/tools

4. Download current Eclipse 3.5, eclipse-java-galileo-linux-gtk.tar.gz, from http://www.eclipse.org/downloads/. Extract to /usr/local/lib.

5. Start up Eclipse, select Help->Install New Software. In the Install dialog, click Add..., then enter http://dl-ssl.google.com/android/eclipse/ in the location then click OK. Select Developer Tool which contains Android DDMS and Android Development Tools, click Next, Next. Accept the terms of License agreement, then click Finish. Go ahead at the restart Eclipse prompt.

6.Set up the Android SDK PATH in Eclipse. Select Windows->Preferences->Android. Browse the SDK Location to set the path.

7. Create an Android Virtual Device (AVD):
android create avd --target 2 --name my_avd

8. If Subversion is not on the system, run follwing to install Subversion:
sudo apt-get install subversion

Otherwise, run following command to checkout the example source from Google to learn and start:
svn checkout http://android-examples.googlecode.com/svn/trunk/ android-examples

1 comment:

Ecommerce said...

Its great resource to me and its having the good information , if any one read these article, they get good knowledge. so you to promote your blog by using some Internet marketing strategy, because it can easily to reach the peoples.

Android app developer