INSTALLING IDE AND SDK

First we must have the necessary packages properly configured to run java

apt-get install sun-java6-bin ia32-libs

Download Eclipse from for example here.

http://eclipsemirror.yoxos.com/eclipse.org/technology/epp/downloads/release/ganymede/SR2/eclipse-jee-ganymede-SR2-linux-gtk.tar.gz

Unzip and run eclipse. In the “Help / Software Updates…” menu we select the “Available Software” tab and add as a site:

http://dl-ssl.google.com/android/eclipse/

We download and unzip the SDKs for development

http://dl.google.com/android/android-sdk-linux_x86-1.5_r2.zip

From eclipse we configure the SDK in “Windows \ Preferences” in the Android section we write the path where the previous downloaded file has been unzipped. Next we will add the necessary targets to run our compiled application.

 **CONFIGURING PHYSICAL DEVICE
**

We have just completed a phase, from this moment it is possible to start developing, with the drawback that we would have to use the emulator, a process that is a little slow and unstable (in my opinion), therefore the next step is to prepare everything to be able to code directly against our PDA.

Now we will proceed to configure the device in our distribution, and we will do so by passing the UDev the relevant data to the file /etc/udev/rules.d/50-android.rules and we will add the following two lines:

SUBSYSTEMS==“usb”, ATTRS{idVendor}==“0bb4”, ATTRS{idProduct}==“0c01”, MODE=“0666”, OWNER=“thempra”
SUBSYSTEMS==“usb”, ATTRS{idVendor}==“0bb4”, ATTRS{idProduct}==“0c02”, MODE=“0666”, OWNER=“thempra”

Change the owner of thempra to your user. Next we save and give it execution permissions:

chmod a+rx /etc/udev/rules.d/50-android.rules

Ready to start working with some of the tools that Google provides us, to do this we move to the Android SDK directory and enter the tools folder.

We connect the android to the PC, and check that it has detected it:

 ./adb devices

We list all the targets that we have installed:

./android list targets

Getting something like:

id: 1
     Name: Android 1.1
     Type: Platform
     API level: 2
     Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 2
     Name: Android 1.5
     Type: Platform
     API level: 3
     Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 3
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Description: Android + Google APIs
     Based on Android 1.5 (API level 3)
     Libraries:
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P

And now we just need to add it

./android create avd –name androidePhysico –target 2

 Ready, everything is ready to work with Eclipse and Android, a couple that will give a lot to talk about.