Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Section A.1. The Android Debug Bridge

A.1. The Android Debug Bridge

When developing and debugging Android applications, you’ll spend a lot of quality time with one particular tool: the Android Debug Bridge, or ADB. The ADB is a client/server application that enables you to interact with an Android device or emulator (we’ll say device hereafter) from your command line. More specifically, it allows you to detect and enumerate connected devices and run commands directly within a device’s shell. We’ll now run through some typical scenarios that involve working with the adb tool.

A.1.1. Interacting with devices

If you’re running an emulator or have devices connected to your development machine via USB, then you can use the ADB to discover and connect to them. For instance, if we have my Nexus One connected to my computer, and we’re also running an Android emulator instance, using the adb devices command to enumerate all visible Android devices will return the following:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint