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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access