2009年8月3日星期一

Sunset

Sent from iPhone.

Yapeng

2007年12月5日星期三

2007年12月4日星期二

Installing Google Android SDK in Ubuntu

Today we will try to go through "Install Android SDK on Ubuntu 7.10" quest. Hope this will be helpful to some of you. let's get started.

  1. Go to http://code.google.com/android/download.html and download the linux version of the SDK.
  2. Unzip the file to your home folder. It will create a new folder named android_sdk_linux_m3-rc22a ( can be different version number at a later date)
  3. in terminal run:
    gedit ~/.bashrc
    This will open an editor, please add to the end of the file:
    # set PATH so it includes Android tools path
    export ANDROID_SDK_ROOT="$HOME/android_sdk_linux_m3-rc22a"
    if [ -d $ANDROID_SDK_ROOT/tools ] ; then
    PATH="${PATH}":"$ANDROID_SDK_ROOT/tools/"
    fi
    Don't forget to save changes :-)
  4. open terminal and run:
    sudo apt-get install eclipse

    This will install Eclipse.
  5. Follow instruction from here to install Eclips Plugin.
  6. Install Java, in terminal run:
    sudo apt-get install sun-java5-jdk
  7. Update your setup to use Sun Java as default, in terminal run:
    sudo update-java-alternatives -s java-1.5.0-sun
  8. Remove all the gcj packages running in terminal:
    sudo apt-get remove java-gcj-*
Now you can start Eclipse and start coding your first project or look at one of the samples supplied with the SDK.