美文网首页Android Utils
Android 便捷抓屏

Android 便捷抓屏

作者: 几千里也 | 来源:发表于2015-04-20 11:29 被阅读67次

用 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 也很方便

*** REF***

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.

相关文章

  • Android 便捷抓屏

    用 shell 脚本抓屏 用 Android Studio 也很方便 *** REF*** Start your ...

  • 安卓适配

    ------刘海屏------屏幕适配 | Android 刘海屏适配总结Android刘海屏适配方案Androi...

  • TP

    android 电容屏(一):电容屏基本原理篇 android 电容屏(二):驱动调试之基本概念篇 android...

  • android横竖屏锁定

    android横竖屏锁定 横屏锁定 竖屏锁定

  • Android Studio 图片适配/使用之SVG

    前言 适配可以说是Android的老大难问题了,Android厂商众多,设备碎片化严重.大屏小屏,全面屏,异形屏数...

  • 横竖屏切换时Activity生命周期变化

    在Android10系统的Pixel上测试。横屏切换到竖屏: 竖屏切换到横屏: 配置文件添加了android:co...

  • 基于MediaProjection实现Android移动手机截屏

    Android软件应用经常要求实现截屏和录屏的功能,那么如何实现Android软件截屏和录屏功能呢?本文将介绍基于...

  • iOS 应用内截屏分享

    需求:捕获用户截屏操作,并建议用户截屏后的操作。虽然iOS11 有系统的截屏,但 APP 内截屏可便捷操作。 封装...

  • 安卓截图笔记

    Android截屏 Android截屏的原理:获取具体需要截屏的区域的Bitmap,然后绘制在画布上,保存为图片后...

  • Android截屏方案

    Android截屏 Android截屏的原理:获取具体需要截屏的区域的Bitmap,然后绘制在画布上,保存为图片后...

网友评论

    本文标题:Android 便捷抓屏

    本文链接:https://www.haomeiwen.com/subject/joayfttx.html