what are steps to Programmatically take screenshot

2019-06-06 11:06发布

问题:

My Device is rooted and I want to Programmatically take screenshot. I am trying to do it using framebuffer like this.

$ /system/bin/cat /dev/graphics/fb0 > /mnt/sdcard/screenshot.bin
/system/bin/cat /dev/graphics/fb0 > /mnt/sdcard/screenshot.bin

screenshot.bin file has been successfully created on sdcard and its file size is 4800KB

Can any one tell what should I do next to get Image.

Please help!! sorry for my poor English.

Thanks In advance.