Taking screenshots on an Android-based phone
Even before playing with the new Android phone, the T-Mobile G1, I knew that I would need to be able to take screenshots of the phone itself. Using a digital camera to capture screens externally just wasn't going to cut it. Because the Android platform is open (and now, open source), I really didn't expect this to be a problem. If anything, I thought there would be a way to take screenshots directly from the device like you can with the iPhone and iPod Touch.
Alas, I discovered this is not the case. After scouring Google trying to find answers, I asked Engadget's Editor-in-Chief Josh Topolsky what they used for the screenshots in their review, and he was nice enough to fill me in on the details.
Warning: right now, taking screenshots from an Android device requires installing the SDK. That doesn't make it as simple as pressing a button, but it's not the end of the world. If you've got a few minutes, and a quick connection with which to download the SDK, we'll show you how to take delicious Android screenshots of your own.
Step 1: Enable USB Debugging
On your Android phone (in this case, the G1), go to Settings, then Applications, and then Development. Check the checkbox for "USB debugging."
Step 2: Download the Android SDK
Download the SDK for your platform here. Google also has some great installation documentation if you get lost. You will need to make sure you have a current copy of the JDK. To use the SDK, you also need to download an IDE like Eclipse. After installing Eclipse, you can install the Eclipse plugin to connect Android and the IDE together, or just do a lot of stuff via the command line.
Go ahead and plugin your Android handset into a USB port on your computer, if it is not plugged in already.
Step 3: Run DDMS
After configuring Eclipse or whatever IDE you use to work with Android, you need to open up the DDMS application from within the "tools" folder in the Android SDK's main folder.
After DDMS launches, select your handset from the menu on the left (it should be the only device listed). You might see an error message, but the debug tool should be loaded. Then, click CTRL-S on your keyboard. This will bring up the "Device Screen Capture" interface. From here, a static image is captured from what is appearing on your handset. You can save the image (nicely defaulted as PNG) and then refresh to your heart's content to grab updated or different screenshots from your phone.
That's it!
There is a caveat: Because your device has to be plugged into USB to be accessed by the SDK, the SD card cannot be used for taking photographs, playing music or downloading music from the Amazon.com MP3 store. You can take pictures of some of those screens, but to actually download anything, take movies, or take a photo, you cannot have your device plugged into the computer and accessed by the SDK.
Again, this is hardly as simple the iPhone's screenshot interface, but it is still very doable.













Comments
24
Subscribe to commentsAndroidTapp.comApr 15th 2009 8:40PM
This is golden!
Thanks for this, absolutely vital for my new Android App Rate/Showcase website www.AndroidTapp.com
DarylJan 4th 2009 3:12AM
I've been able to take a few screenshots using the method mentioned here, but I'm having a strange problem...
I can take screenshots with DDMS for only about 15 seconds after connecting the device to my PC... After that, all I get is "Screen not available"
Any ideas as to what is going on?
Christina WarrenJan 5th 2009 8:26PM
If you happen to be using an app that is getting data off the microSD card, this is the problem. You can grab about 15 seconds worth and then it'll futz out. The Music Player is the only app I've really had this issue with though.
If USB disk mode is disabled, try enabling it. If it is enabled, try disabling it (I can't remember the "best" setting -- I think it's disk mode disabled).
DarylJan 6th 2009 1:58AM
Christina
First: I don't have to be using any apps for it to stop working after 10+ seconds... I can just stay on the home screen... Take a screenshot, wait 10 seconds or so, hit "refresh" in ddms, and then I get this:
http://share.imaslacker.net/error.png
Without ever opening any app that may need access to the SD card.
And second: You recommended changing the "USB disk mode" setting... but didn't this setting get removed with RC30? When they introduced the new "mount" or "don't mount" notification dialog? It's been a while since I updated, so I don't remember for sure - but I sure don't see any such setting now.
The only thing related is the setting to mount/dismount the SD card... And, changing that has done nothing - I still have the same problems.
Thanks a ton for your help!