I'm using a Droid Maxx with v4.4.4 Android. I'm trying to do:
adb shell screenrecord /sdcard/myvideo.mp4
and I am able to capture a video, which shows the desktop fine, but my app, results in a black screen showing. I tested with facebook, which records just fine.
with verbose on, I get this as part of the shell:
Main display is 720x1280 @60.00fps (orientation=0)
Configuring recorder for 720x1280 video at 4.00Mbps
Content area is 720x1280 at offset x=0 y=0
Example recorded video shown here: http://youtu.be/ZeKhTzRpRns
Make sure that you aren't setting
FLAG_SECURE
: