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/sandbox restrictions: your screenshot code can only take snap screens that are within the same application. That pretty much sucks. I think it is doable now since that the G1 has been hacked, and root access is available.

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

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