Tuesday, April 20, 2010

Taking Screenshots on your Android Phone

A few weeks ago, I dabbled around with trying to write a screenshot application for Android. Turns out that it is not possible due to security. Your screenshot code can only take snap screens that are within the same application. That pretty much sucks. I think it is doable in other way around.

It is possible, however, to take screenshots through the DDMS tool (Dalvik Debug Monitoring Service).

Install the Android SDK.
Enable USB debugging on your phone.
Run ddms from the tools directory of the Android SDK.
Select your phone from the list on the left.
Go to the menu and select Device, then Screen capture.