Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

For demoing an Augmented Reality app, I would like to do a screencast of the Android device's screen (HTC Desire S).

The open source project androidscreencast works fine, except for the camera view. The overlays on top of the camera show through, but the actual camera view itself just shows up black. I have the same issue with the ddms tool that comes with the Android SDK - I can capture the screen, except for the camera view which appears black.

Here's the image I get using the ddms tool if I try to capture the screen when I have the normal camera app running: http://twitpic.com/83uztm

Please does anyone know why this is and how to get around it? Is it some kind of security feature, or a bug?

I came across something earlier that looked like a code workaround someone had come up with, but I don't have access to the app's underlying source code, so I need a non-programming method of getting this to work.

share|improve this question
    
Have you tried this: play.google.com/store/apps/details?id=com.ms.screencastfree –  Sachin Shekhar May 18 '12 at 20:01
    
Thanks for the link. It's a work phone though, so I don't want to root it. Also, it's an HTC Desire S which it seems to say is incompatible too... –  poshaughnessy Jun 22 '12 at 10:35
add comment

1 Answer

up vote 1 down vote accepted

Sorry, without root, is probably not possible. With your device's OS version and the fact that you want to capture an overlay (video playback), even harder.

Prior to Android 3.0, screenshots were taken using the framebuffer, that is accessed by opening the /dev/graphics/fb0 device. This location requires root access, and even with root may not work for all devices. Some devices use a pair of framebuffers and toggle between them.

Additionally, and more related with your current problem, the framebuffer doesn't contain surfaces in an overlay (often the case with video playback). That's the reason as to why you don't get the video, only the application frame.


Support information by developers on stackoverflow by this answer and this answer.

share|improve this answer
    
OK, thanks for letting me know –  poshaughnessy Sep 5 '12 at 12:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.