Android Development

This document contains brief notes on Android development, mostly running under Debian 5.0 (Lenny).


Google have deprecated using Eclipse and the Android Development Tools (ADT) for Android development. Android Studio is now the official Integrated Development Environment (IDE).

This document, having been originally written in 2010, is now very out-of-date and probably no longer of much use.

-- Frank Dean - 25 Apr 2018

Installing ADT Plugin

USB Debugging

udev rule

See "Setting up a Device for Development" and "howto set android developer device permissions with udev" on the Android Developer Site for more information.

As root, create a udev rule in /etc/udev/rules.d/51-android.rules similar to the following:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c87", GROUP="staff", SYMLINK+="android%n"

Use the dmesg command to see what the values should be for idVendor and idProduct after connecting the USB device. The values above are for the htc desire.

The adb server may well already be running, so stop and restart it:

    $ adb kill-server
    $ adb start-server

Then see if the device is listed properly:

    $ adb devices

Issuing Shell Commands

    $ adb -d shell ls .

Mock Locations

SD Card

Mount SD Card Image

    $ sudo mount -o loop=/dev/loop0 ~/.android/avd/my_android2.2.avd/sdcard.img /mnt/android

Although, probably easier to use the adb tool and it's push and pull commands.


Menu Icons

Android Market API

-- Frank Dean - 27 Sep 2010

Related Topics: DevelopmentSetup, LearningJavaWeb, LinuxDevelopment