Im trying to take screen shot of my Emulator .
I run my app.
Then switched to Android Device Monitor Screen.
In Device panel I clicked my online Emulator(Nexus5[emulator-5554]) in which my app is running.
To take screen shot of my app i pressed the screen shot Camera button.
Faced an error with empty X screen
Here is my LogCat error
10-04 23:07:41.008: E/gralloc_goldfish(923): gralloc_alloc: Mismatched usage flags: 1080 x 1920, usage 333
10-04 23:07:41.008: W/GraphicBufferAllocator(923): alloc(1080, 1920, 1, 00000333, ...) failed -22 (Invalid argument)
10-04 23:07:41.008: E/(923): GraphicBufferAlloc::createGraphicBuffer(w=1080, h=1920) failed (Invalid argument), handle=0x0
10-04 23:07:41.018: E/BufferQueue(3045): [ScreenshotClient] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
please help me with this issue..Thanks