User Tools

Site Tools


android_dev_notes

This is an old revision of the document!


on linux with emacs

setting up the hardware:

  • enable debugging on device
  • set permissions on usb device by creating /etc/udev/rules.d/51-android.rules (0bb4 is htc vendor):
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

test it works with:

adb devices

creating a project (from http://developer.android.com/guide/tutorials/hello-world.html ):

android create project \
  --package com.android.helloandroid \
  --activity HelloAndroid \ 
  --target 2 \
  --path <path-to-your-project>/HelloAndroid 

Use “android list targets” to get the target number

Load a file into emacs, M-X android-ant-install, and the package should appear in your apps list

Sidestepping java with the NDK: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/

android_dev_notes.1302684109.txt.gz · Last modified: 2011/04/13 08:41 by davegriffiths