Uh-Oh! (Responding to Errors)

You write perfect code, right? Even if it’s perfect this time, though, the day will come when it isn’t. When coding doesn’t go as planned, you have to figure out the problem. To help developers in the dire situation of a random application crash, the ADT provides valuable tools to help debug applications.

Using the Dalvik Debug Monitor Server

The Dalvik Debug Monitor Server (DDMS) is a debugging tool that provides these features, among others:

check.png Port forwarding

check.png Screen capturing

check.png Thread and heap information on the device

check.png System log messages via LogCat

check.png Process and radio state information

check.png Incoming call and SMS spoofing

check.png Location data spoofing

DDMS, located in the Android SDK platform-tools directory, can work with an emulator and a connected device. In Chapter 2, ...

Get Android Application Development For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.