Android SDK
Installation
https://help.ubuntu.com/community/AndroidSDK
How to set up the Android SDK on Ubuntu 11.04 onwards.
Introduction
The Android SDK is a software suite for the Android mobile operating system that allows you to write applications for Android in the Java.
Today Android OS is one of the most popular OS used on portable Smart Phones.
Installation
Downloading the SDK Starter Package from http://developer.android.com/sdk/index.html.
Download and extract the one for Linux (.tgz file)
$ tar -xvzf android-sdk_rXX-linux.tgz
As of Sept 19th, 2012, the Android SDK is currently up to r20, replace XX with the version of your SDK.
Setting up Java
Download and install the OpenJDK and the Icedtea browser plugin, as following :
$ sudo apt-get install openjdk-6-jre openjdk-6-jdk icedtea6-plugin
Downloading the SDK platform tools
In order to obtain the SDK platform tools, we'll need to initialize the Android SDK and AVD Manager as folowing,
Go to android-sdk-linux/tools
$ cd /YOUR_SUITABLE_PATH/android-sdk-linux/tools
$ ./android
Once you do that, a new window will pop up, with two boxes. One is the Tools and the other is the Extras.
Post-Installation Configuration
Set up the PATH variable to include SDK tools as following
$ vim ~/.bashrc
You will now have the Nano text editor enabled on the terminal. Now, at the very top of the file, enter the following:
# Android PATH
export PATH=${PATH}: /YOUR_SUITABLE_PATH/android-sdk-linux/tools
export PATH=${PATH}: /YOUR_SUITABLE_PATH/android-sdk-linux/platform-tools
Preparing Hardware
You'll need need to create a new udev rule file as root.
In a terminal, execute the following command that will create the rule file.
$ gksudo gedit /etc/udev/rules.d/51-android.rules
Copy and paste the following udev rules in the text editor that opened up which contains the new rule file we created. The rules included should work with most if not all Android devices across multiple manufacturers, such as HTC, Motorola, LGE, and so forth.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", SYMLINK+="android_adb", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
You can contribute to this wiki, see Wiki Guide for details