Android Development
This document contains brief notes on Android development, mostly running under Debian 5.0 (Lenny).
Update
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
http://developer.android.com/sdk/eclipse-adt.html#installing
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
http://stackoverflow.com/questions/2531317/android-mock-location-on-device
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.
EULA
http://androiddevstudio.com/tutorials/adding-eula-to-android-app
Menu Icons
http://developer.android.com/guide/practices/ui_guidelines/icon_design.html
http://www.shockinggrey.com/tiki/tiki-read_article.php?articleId=1
Android Market API
-- Frank Dean - 27 Sep 2010
Related Topics: DevelopmentSetup, LearningJavaWeb, LinuxDevelopment