A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Developing on Android basics

Initial steps to take:

  • Turn on USB Debug mode
    • Old devices: Settings | Applications | Development | USB debugging (will disable SD card access)
    • New devices: Settings | About phone | Build number | Tap 7 times (yes, really). Dev settings will now appear on the menu.
  • Troubleshooting connection:
    • Verify USB cable works
    • Verify USB port works
    • Re-plug in the cable about 20 times (yes, really)
    • Windows: Run "Android SDK manager" (sdk\tools\android.bat) and install 'Google USB driver' under Extras
    • adb devices # error "???????????? no permissions usb:3-3
      • adb kill-server
      • sudo adb start-server # server must be started as root
      • adb devices
  • ADB Shell commands: