1. Posts/

How to take screenshot of Android device (developer edition)

···
How To Android Google

Older versions of Andriod doesn’t give a simple option to take screen shot directly from the device. Apple’s iPhone has a handy feature which allows to take screen shots by pressing Power+Home button. From Android 2.2 (Froyo) onwards Android devices gives and option to take screenshot from the device itself by using Home + Power button combo. This post is android developers method for getting screen shot from Android devices.

It took some time and searches to figure out how to take screen shots from Android device. You need to have android development kit installed and configured to take screen shots using the official method.

Android home screen

It was easy for me once I figured out the method, as I had already installed android-sdk in my machine. I am using SpringSource Tool Suite with ADT plugin for development which is a Spring flavoured Eclipse

If you already have them installed great, otherwise you might want to get these installed in your machine. Download option and installation instructions can be found in the following links

By optional I mean, Eclipse and ADT is not required for taking the screen shot, which is the purpose of this blog post

Once you have it ready, follow these steps

  1. Enable USB debugging in the android device, by going to Settings > Applications > Development > and checking the check box that says USB debugging.
  2. Connect your Android device to your machine
  3. Start ddms(Dalvik Debug Monitor Server) either from Android-SDK/tools folder or from Eclipse

Android SDK tools folder
Android SDK tools folder

Start DDMS
Start DDMS

  1. That will open ddms screen like this

DDMS Screen
DDMS Screen

Here you will be able to see the device that you have connected. You can ignore the messages and warnings that are continuously updated at the bottom.

  1. Click on the camera icon or screen capture option under the Device menu

Click on camera icon
Click on camera icon

  1. Now you will get the Device Screen Capture window.

Device Screen Capture Window
Device Screen Capture Window

You can directly save the screen shot from this. Go to a different screen or application and click ‘refresh’ option to get a updated screenshot. It also gives rotate and copy to clipboard options. Click done to close the window.

The images are saved in PNG format and are small in size. I have tried screenshots of Youtube videos being played and it worked very well.