, , , , ,

What is ADT

If you’re a new Android developer, ADT bundle is recommonded you to develop android apps. It includes the essential Android SDK components and a version of the Eclipse IDE with built-in ADT (Android Developer Tools) to streamline your Android app development.

With a single download, the ADT Bundle includes everything you need to begin developing apps:

  • Eclipse + ADT plugin
  • Android SDK Tools
  • Android Platform-tools
  • The latest Android platform
  • The latest Android system image for the emulator.

You can download ADT bundle from here. Since this ADT comes with most of the things, this much convenient

Note : Now Android Studio is available here

Install and open ADT


After download, put it in a place /home or some ware else and extract it. (say I put the file in /home and named extracted folder as AndDev). Inside that AndDev folder you would see two folders called “eclipse” and “sdk”. Open eclipse folder and open the file called “eclipse”.

Set Path

First of all set the PATH. To do that open terminal and execute the following command

sudo export PATH=${PATH}:<sdk>/tools:<sdk>/platform-tools

<sdk> is the place where your ADT’s sdk folder lives.

Here in my example, the code is

sudo export PATH=${PATH}:/home/AndDev/tools:/home/AndDev/platform-tools

Problem with R class

Once you have installed and opened the eclipse inside ADT bundle, create a sample project. If you get any problem with R (resources class),

R Cannot be resolved to a variable and adb cannot be found

The reason why R cannot be resolved is because R should point to the R.java file, which is auto generated and is located in the gen folder. In our case R.java was not generated, thus Eclipse was not able to resolve it. To solve this you have to install 32bit libs. In some case, 32bit libs depend with audit, a package contains the user space utilities for storing and searching the audit records generate by the audit subsystem in the Linux 2.6 kernel.

so execute

sudo yum install audit

to install audit and then execute

sudo yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686


Now you have install 32bit libs and restart eclipse.

Install Xtouch‘s USB driver in Fedora

To setup Xtouch device for development in Fedora, we have to add a udev rules file that contains a USB configuration for your Xtouch device. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property.

I was searching for Xtouch’s USB Vendor ID for more then 2 hours. I already have the USB driver for Windows. I have downloaded the Windows driver from here.

I went through Windows Device manager to find out the USB VID (Vendor ID) for my Xtouch X507 phone, since Xtouch use MTK65xx chipset, and fortunately the USB VID is 0x0BB4.

To add udev file

  1. Login as root
  2. Create a file /etc/udev/rules.d/51-android.rules
  3. Open the file in gEdit and add
    SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
  4. Save the file and close gEdit


Thats all, you have successfully added Xtouch’s USB driver to the system. Now Logout and Login again to make it effective. Sometimes a restart may require..