Wednesday, January 26, 2011

Android Screenshots in Linux

I've been helping a friend of mine beta test an Android application. A couple of problems I found were easier to show than explain, but Android doesn't have a built-in screenshot capability. I found this page that made things much easier. I already had the Android SDK installed and working. So I just needed to create /etc/udev/rules.d/android.rules with this line in it:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"

Once udev was restarted and I enabled USB Debugging Mode on my phone, I could run the ddms utility with the Android SDK and get all kinds of cool info on my phone, including taking screenshots.

No comments: