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:
Port forwarding
Screen capturing
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, ...
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.