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:
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,
* 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,
* a sound is played, a flash of white covers the screen, and an animation of the screen image shrinks away,
* a message "Saving screenshot..." appears in the top left of the screen,
* the screenshot is available in a file browser or gallery,
* the image is available in a file browser or Gallery app,


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

It won't work if the previous screenshot is still being saved.

(For further technical analysis, see <trac>12798</trac>. The X game key must be pressed within about a quarter of a second of the power button, and both must be held for about three quarters of a second.)


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

Latest revision as of 04:54, 28 June 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, a flash of white covers the screen, and an animation of the screen image shrinks away,
  • a message "Saving screenshot..." appears in the top left of the screen,
  • the image is available in a file browser or Gallery app,

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

It won't work if the previous screenshot is still being saved.

(For further technical analysis, see <trac>12798</trac>. The X game key must be pressed within about a quarter of a second of the power button, and both must be held for about three quarters of a second.)

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