您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页Android 便捷抓屏

Android 便捷抓屏

来源:二三四教育网

用 shell 脚本抓屏

#! /bin/bash

adb root
adb remount

# Capture Screenshot
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/screencap.png

# or
# adb shell screencap -p /sdcard/screencap.png
# sleep 1
# adb pull /sdcard/screencap.png

# View Screenshot
eog ~/screencap.png &

用 Android Studio 也很方便

Start your app as described in Run your App in Debug Mode.
Click Android to open the Android DDMS tool window.
Click Screen Capture on the left side of the Android DDMS tool window.
Optional: To add a device frame around your screenshot, enable the Frame screenshot option.
Click Save.

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务