9.12 Android Screenshot

20200128

Screenshot capture is generally a function of the operating system, and so does not require an additional application. A common approach on Android devices is to press and hold down the VolumeDown and Power buttons simultaneously. On some versions holding the Power button down includes Screenshot as one of the options. On the Samsung Galaxy S7 and earlier models, press and hold the Home and the Power buttons simultaneously until a screenshot is taken.

The screen image is often saved into a Screenshots folder under Pictures on the internal storage. This can be auto uploaded to the cloud (e.g., through Nextcloud for example).

Using adb we can request a screenshot and then copy it to our local computer, and the downsize it somewhat using convert:

adb devices
adb shell screencap -p /sdcard/screenshot.png
adb pull '/sdcard/screenshot.png'
convert -resize 25% screenshot.png smaller.png


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0