Pages

Saturday, April 9, 2011

Screen Capture on an Android Device

Sometimes you may wish to do screen capture from an actual Android device rather than the emulator. This is easy to do with the supplied tools in the Android SDK.

The assumption here is you are developing with Eclipse and able to run/debug applications on your Android device.

1. In Eclipse go to Window > Open Perspective > Other. A dialog will appear select DDMS from the list.

2. You now have the DDMS perspective open. You can switch back to the Java/debug perspective easily through the tab near the top right.

3. Debug/run your application as per normal. Switch over to your DDMS perspective. You will see an option called Screen Capture under Devices tab on the left. Click on it and a dialog opens allowing you to capture the current view on your Android device.

4. Simply click on Refresh if you need to get a new screen and Save when you are done. An image in png format is saved to your hard-drive.

That's it!

No comments:

Post a Comment