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:
Thread and heap information on the device
System log messages via LogCat
Process and radio state information
Incoming call and SMS spoofing
Location data spoofing
DDMS, located in the Android SDK platform-
tools directory, can work with an emulator and a connected device. In Chapter 2, ...