Monday, September 19, 2016

How to capture Android device screen using adb?

There are many ways to take a screen shot on Android device.If you are using
Eclipse ,it can be done easily using DDMS. Here is how you can do it by using adb. 
 
Capture device screen 
 
$ adb shell screencap -p /mnt/sdcard/screencapture.png
$ adb pull /mnt/sdcard/screencapture.png
 
Record device screen 
 $ adb shell screenrecord /mnt/sdcard/screenrecord.mp4  
 $ adb pull /mnt/sdcard/screenrecord.mp4 

No comments:

Post a Comment