|
Android 底層開發有時會需要直接進行截圖,這邊找到了幾種直接截圖的方法: |
|---|
方法1
在 PowerShell 下輸入底下指令:
cmd /c "adb exec-out screencap -p > screenshot.png"
方法2
在 PowerShell 分段執行,分別輸入底下指令:
1. 截圖
adb shell screencap -p /sdcard/screenshot.png
2. 下載
adb pull /sdcard/screenshot.png ./screenshot.png
3. 刪除
adb shell rm /sdcard/screenshot.png
方法3
在 cmd 下輸入底下指令:
adb exec-out screencap -p > screenshot.png
No comments:
Post a Comment