views:

294

answers:

4

When one wants to publish his App on the Android Market he can upload up to two 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 Android Market that allow you to take screenshots, but you have to root your phone, which I dont want to. There are related topics within stackoverflow 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 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" (here) but they dont explain what I actually need to do step-by-step.

I would really appreciate if someone can help me out.

+2  A: 

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

Cristian
+1  A: 

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.

Pentium10
LOL... we wrote almost the same. +1, since I think my answer is correct, then yours too.
Cristian
+1  A: 

There's a tool that the Android SDK comes with to help you take screenshots if your device is connected to the computer. I'll explain both. First, for both you need to plug your device into the computer and have it be recognized by adb (aka, when you run "adb devices" it shows your phone).

Then you can either use Eclipse or DDMS:

DDMS

  1. Open ddms.

  2. Click on your device in the list on the left.

  3. Go to the menu Device --> Screen Capture.

Eclipse

  1. Open Eclipse.

  2. Open the "devices" view. You can get to it via Window --> Show View --> Other... --> Android --> Devices.

  3. Click on your device.

  4. In the Devices view, there's a little picture in the upper right corner. If you hover your mouse over it it says "Screen Capture." Click that.

Both methods lead you to the same tool which captures screenshots. Sometimes it can be a little buggy - occasionally I need to close/reopen the window in order to get it to take a screenshot.

Daniel Lew