Tuesday, September 27, 2011

How to take a screenshot with the Android SDK

You can take a screenshot in Android using one of the several Market's application, or using "ddms", a tool you can find in the tools directory of the sdk.

So, go to that directory and start it:

cd [sdkdir]/tools
./ddms


Then go on the Device menu ant click on Screen capture. Then save the image file.






If you want to take a screenshot from Eclipse, it is even simpler.
Just set the DDMS perspective:
Look for the camera button, and click on it to show the following menu:




Here you can find the "Screen Capture" command.

No comments:

Post a Comment