Wednesday, 15 December 2010

How to capture screens in android

I was wondering how to capture screen shots because we often want to take our applications screen shots. Later I found that android DDMS (/tools directory)allows to capture your screens. Lets look at how it works -

Here I am gonna show from Eclipse DDMS. If you are developing in eclipse, click WINDOW>Open perspective> DDMS.

Now you get a DDMS perspective. On the top left side, you can see  DEVICES tab, the name of the device(phone or emulator). In my case, i have a HTC desire connected with my laptop and its ID is <SH0A4PL03529>. Now click on the drop down menu as shown on the Figure:1 and click Screen Capture.

Fig:1 Eclipse DDMS perspective.

Once you click Screen Capture, you will see the current screen of your device. In my case, I have "All Apps" view which i captured. See at Fig-2. Now you can save, or rotate or whatever you want.


Fig2: Captured Screen

Simple and easy. You can also launch DDMS from /tools directory and capture screen of emulator or phone.


0 comments:

Post a Comment