user948620
user948620

Reputation:

Android Black Screenshot in DDMS: Issue? or Security Reason?

I'm taking screenshots in Android Jelly Bean (using Galaxy Nexus)

using DDMS I can take screenshot. Like this.

In Home Screen

enter image description here

But here's the problem.

When I opened the camera app and take a screenshot from DDMS.

Result is... A Black Image...

enter image description here

Even in device It can't take also screenshot.

enter image description here

Why is this happening??

Any help will be appreciated..

Upvotes: 12

Views: 5646

Answers (3)

Neil Swinton
Neil Swinton

Reputation: 71

Try going to the Android Virtual Device Manager, edit the affected device, and uncheck "Use Host GPU" under Emulation Options near the bottom of the window.

Upvotes: 7

Dan Hulme
Dan Hulme

Reputation: 15280

It's probably that the camera image is being fed directly to the framebuffer using a video overlay on this device, rather than going through the usual rendering path. Thus the 'main' framebuffer is empty.

This is the same sort of problem you often see on PC if you try to take a screenshot of a video player or some other software that uses an overlay: you get a grey or blue box on the screen where the overlaid content ought to be. The mechanism is a little different, because Android's composition framework does a lot more of this behind the scenes, but the root is the same.

Since this is to do with how camera images are composited on this device, you could avoid the problem by using a device with a different chipset. For example, Samsung's i9300 can take screenshots of the camera app.

Upvotes: 2

Karan Nagpal
Karan Nagpal

Reputation: 541

Check your adb connection. And see if your AVD device is online or not.

Upvotes: 0

Related Questions