Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Taking screenshot of device's current screen

When one wants to publish his app on the Play Store (previously known as Android Market), he can upload screenshots of his app. I would like to take these screenshots with my current device (Motorola Droid) that I'm using to test the application.

There are some apps on the Play Store that allow you to take screenshots, but you have to root your phone, which I don't want to. There are related topics within Stack Overflow where people want to take screenshots out of there code (here). However I just want to take screenshots of my running app with the current device, which is connected via USB to my computer; I'm developing via Eclipse, so there should be a way to tell your running device that it should take a screenshot via the SDK, right?

Some website (e.g. LifeHacker) mention a way to do this,

To take a screenshot, you'll be required to enable USB Debugging under the settings, install the Android software development kit, and then connect to the phone with a debug tool

but they don't explain what I actually need to do step-by-step.

I would really appreciate if someone can help me out.

like image 965
Pascal Klein Avatar asked Jul 23 '10 13:07

Pascal Klein


People also ask

How do I take a screenshot of my current device?

On the majority of Android devices, you can press the volume down button and the power button together to take a screenshot. The screen should flash, and you'll see a notification that a grab has been captured (tap this notification if you want to share or edit the image).

How do I take a screenshot of just the current window?

Copy only the image of the active window Click the window that you want to copy. Press ALT+PRINT SCREEN. Paste (CTRL+V) the image into an Office program or other application.


2 Answers

Since you probably are a developer, you have SDK and working Eclipse for running Android applications. Just plug in the phone, and make sure you enabled on the Phone the USB Debugging, the device needs to show up in the DDMS perspective of Eclipse.

Once your device shows up in the DDMS perspective there is in icon there to capture the screen.

like image 77
Pentium10 Avatar answered Sep 19 '22 03:09

Pentium10


If you are already using Eclipse to develop your app, then you already have the Android software development kit installed. So, just open the ddms utility that is on the sdk-android/tools directory. There, you can take screenshots by selecting your device and pressing: Ctrl+S (Device -> Screen capture…).

ddms looks like:

alt text

like image 43
Cristian Avatar answered Sep 22 '22 03:09

Cristian