Running adb devices, doesn’t show my connected device

When I return to debugging Android, this is the usually the first thing I run into (if abd is installed on my machine), I run “adb devices” and it shows nothing, even though my device is plugged into the USB Then I remember you need to turn on USB debugging, which means you need to […]

Read More Running adb devices, doesn’t show my connected device

Backing up the Android

WIP – I think this would be straight forward since one of the “adb” subcommand options is “backup” however it doesn’t seem to be that simple (at least for me). First the command: adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|nosystem] [<packages…>] Note: If a file isn’t specified than it defaults to backup.ab However apparently […]

Read More Backing up the Android

adb shell sendevent (could not open /dev/input/event0:, No such file or directory)

This is still a work in progress to get monkeyrunner to interact with a screen that people need to basically draw on. I found this command to get back coordinates of what is being touched on the screen: adb shell getevent Which returns something like this add device 1: /dev/input/event0 name: “qwerty2” could not get driver version […]

Read More adb shell sendevent (could not open /dev/input/event0:, No such file or directory)

Installing new builds faster

I am repeatedly installing new builds (removing the old one first) so I created a batch file (very, very simple) to do the work for me.  update_droid.bat To run it:  update_droid.bat new-app.apk   Contents of batch file: echo off adb uninstall com.company.app adb install %1 adb logcat -c 2nd line removes the app base on […]

Read More Installing new builds faster

logcat options

Finally back into Android testing, running into the current problem where there is too much information in the log, I need to narrow it down to just the error that I am running into.  Fortunately logcat has built in help,  I am just posting this as a note to myself to make life easier. For […]

Read More logcat options