Skip to main content

Posts

Showing posts with the label adb

Take screenshot using adb

Many times, when I am working with the Android devices, I just want to keep using the command line and be able to take the screenshots too. Yes, we can do that! Here is how: Start ADB server if its not already running. To check, type in adb devices on the command line -- if its not started it should start now and give you the device id for the device you have connected Now type in the following commands to capture a screen adb shell screencap -p /sdcard/Pictures/Screenshots/screen.png adb pull /sdcard/Pictures/Screenshots/screen.png adb shell rm /sdcard/Pictures/Screenshots/screen.png

Debug an Android Phone on Windows

To debug an android phone on windows you need to follow these steps: On the Phone Enable USB Debugging on your Phone Enable USB Debugging on the Chrome  browser of your phone On Windows 7 Install the “ADB PLugin” extension on Chrome browser Install the phone drivers needed as per the phone you want to debug Connect the phone to windows Open “ADB Plugin” and start debugging!!!   Important Links http://www.androidcentral.com/how-enable-developer-settings-android-42 http://devtoolsecrets.com/secret/mobile-using-developer-tools-on-android.html https://developers.google.com/chrome-developer-tools/docs/remote-debugging   Hope this helps!