DEV Community

Mike Grant
Mike Grant

Posted on • Originally published at mikegrant.org.uk on

Xamarin Tips - Screenshot your Android Phone from ADB

Having the ability to take a screenshot directly from your command prompt will save you a lot of time over the duration of a project. When I’m building an app I know I regularly take screenshots to show features, bugs or just general UI weirdness to others and the time I lose taking it, transferring it to be emailed or shared on Teams is frustrating. A handy one liner can be used to speed this process up.

Taking a screenshot on your Android device

  1. Using the adb command prompt from Visual Studio (Or if you have ADB in your path)
adb exec-out screencap -p > screenshot.png

Enter fullscreen mode Exit fullscreen mode

That’s it! Your screenshot is now saved to the location specified.

Top comments (0)

Billboard image

📊 A side-by-side product comparison between Sentry and Crashlytics

A free guide pointing out the differences between Sentry and Crashlytics, that’s it. See which is best for your mobile crash reporting needs.

See Comparison

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay