Android/Screenshots: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
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, 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.
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.


It won't work if the previous screenshot is still being saved.
tips:
press power button sightly earlier than "X" button would be easier to trigger screen shot.


(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.)
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

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