Programming Tips - Android: do a screenshot from the command line

Date: 2015may11 Update: 2025jul5 OS: Android Keywords: screen capture Language: Bash Q. Android: do a screenshot from the command line A. If you have root access:
/system/bin/screencap -p /sdcard/myscreen.png
You may not need the full path of the command:
screencap -p /sdcard/myscreen.png
-p = use .png format.