How to Screenshot Android in Windows using ADB

Sometimes default screenshot on your android device requires some buttons and pressing to be able to capture the screen you may want to share but would not capture all if you happen to press on a certain function or menu and when you screenshot it would hide the details you wished to be included.
Android app screenshot

Good thing with ADB it can help you capture the necessary details as you won't be simultaneously operating the app on your android device and pressing those screenshot buttons.

Requirements:
1. Make sure to install ADB and set the path to your environment variables so you would be able to detect your device when connecting with the USB cable. 

You may read full tutorial here on how to set up the ADB or watch short video below.
ADB Download for Windows
Watch Short Tutorial on ADB Set Up

2. On your android device go to settings and search for your Developer options (make sure to go to "About Phone" and click the MIUI version to activate the developer options) and turn it on, scroll a little down and turn also the USB Debugging as shown below.
developer options

3. Select a directory in your computer where you want to save your screenshots and create a folder and name it according to your choice, open the folder and (right click) point to your address bar and copy address as shown.

Sample folder and directory
sample folder directory

4. Open your notepad editor and copy the following codes and replace the highlighted address with your own address as per step #3 above.

code:
adb shell screencap -p /sdcard/screenshot.png
adb pull /sdcard/screenshot.png D:\adb\screenshot
sample in notepad
notepad editor

5. Save and give a name with .bat extension (say ADBscreenshot.bat).  You may save it inside the folder where your screenshots to be saved.

sample only "adbscreenshotandroid.bat"
batch file

6. Right click and send to your Desktop.  Go to Desktop and right click and scroll to properties and point your mouse to shortcut key, press CTRL and will show you CTRL+Alt+? then up to you which number or letter to use, to complete click apply.
send to desktop

sample demo (CTRL+ALT+0) as shortcut key
shortcut key

7. Now connect your android device to your computer and open any app and execute your bat file with the shortcut key to take a screenshot.

8. Name of images will be "screenshot" and rename this before you take another screenshot to avoid being overlapped/superseded with recent screenshots.

sample screenshots (renamed accordingly)
sample screenshot from ADB
Share this with friends if you find this helpful. Cheers!

Post a Comment

0 Comments