Over a million developers have joined DZone.
Silver Partner

A Collection of Useful adb Commands for Android

· Java Zone

The Java Zone is brought to you in partnership with JetBrains.  Learn about instant and clever code completion, on-the-fly code analysis and reliable refactoring tools with IntelliJ IDEA.

Looking for some shortcuts to make Android development a bit easier? This post from Daniel Imms provides just that when it comes to the Android Debug Bridge (adb). It's a no-frills collection of useful adb commands, covering essentials such as how to check what devices are connected, installing and uninstalling applications, starting an activity, and more. It doesn't cover everything - you can check out the adb docs to get all the options - but instead just the need-to-know commands.

Some are fairly obvious, but there are a few gems here that are not the most intuitive commands. For example, Imms points to a simple command from Sergei Shvetsov that takes a screenshot and uses Perl to output it to a local directory. Check out Imms' full post for all the tips and see if there's anything that might make adb more useful for you.

The Java Zone is brought to you in partnership with JetBrains.  Learn about instant and clever code completion, on-the-fly code analysis and reliable refactoring tools with IntelliJ IDEA.

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}