Android/Screenshots: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
To take a screenshot on an XO-4 with Android:
Android has a keys combo for screenshots; press the hard volume down and power buttons at the same time, and hold them for a second.
* press the power button and then X game key and hold them for a second, then release,
* a sound is played, and an animation of the screenshot,
* the screenshot is available in a file browser or gallery,


It won't work if the X game key is pressed before the power button.
On XO-4 the hard volume down is mapped as game button "X" on screen pad. So the screenshots combo are
"Power button" and "Game button X" press at the same time and hold them for a second.

tips:
press power button sightly earlier than "X" button would be easier to trigger screen shot.

For old build which does not has Game button mapped as volume down, please following this alternative to take shot.


As a alternative there is a binary which can do the some thing via adb shell
As a alternative there is a binary which can do the some thing via adb shell

Revision as of 22:43, 24 April 2014

To take a screenshot on an XO-4 with Android:

  • press the power button and then X game key and hold them for a second, then release,
  • a sound is played, and an animation of the screenshot,
  • the screenshot is available in a file browser or gallery,

It won't work if the X game key is pressed before the power button.

As a alternative there is a binary which can do the some thing via adb shell

adb disconnect && adb connect 192.168.XXX.XXX
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
gimp screen.png