Home Features Current 10 things every Android developer needs to know - 10. DDMS
10 things every Android developer needs to know - 10. DDMS
Written by Carl Whalley   
Friday, 20 November 2009 09:00
Article Index
10 things every Android developer needs to know
1. Support
2. An IDE
3. Java
4. Graphic design
5. XML layouts
6. The Market
2. An IDE
8. OS Versions
9. The App Lifecycle
10. DDMS
All Pages

10. DDMS

The icing on the developers' cake - we are spoilt rotten by this awesome tool.

Never before in the field of mobile development have you been able to control your device with such power. DDMS stands for Dalvik Debug Monitor Server and is the interactive tool which ships with the SDK. Veteran mobile developers will tell you that the biggest problem with handset development is knowing what the device is doing at any moment. Emulators can go so far but often don't cut the mustard when it comes to behaving exactly as if it's a real world device. DDMS talks to both the emulator and the real hardware. All Android devices have support for a comms system called the ADB, short for Android Debugging Bridge. When you run up the DDMS you get a visual representation in your IDE of what the code in the connected system (emulator / hardware / both) is doing via the ADB, and you can interact with it.

The DDMS is documented here, and here's what it's like in action:

 

 

The great thing about the DDMS is that it really doesn't know if it's dealing with a physical device or the software emulator - and that's exactly what you want because neither does your code. As you can see above, you can monitor the processes, data storage (push and pull files to and from its sdcard for example) but the best feature is the LogCat, this is the system which lets you filter logging code in the Log window, explained in more detail here.

Your IDE will most likely already have a regular debug window where you can set breakpoints and single step code, but that's aimed at any regular Java process. The DDMS understands specifically your Android device, so is really worth getting to know well when you need the extra level of control it offers.



 

Comments  

 
0 #5 cousinHub 2009-12-10 06:54
I liked this part in part 8 (OS versions):

Android releases are named after desserts, so we had Cupcake (1.5), Donut (1.6) and Eclair (2.0), the next two are rumoured to be Flan and Gateaux - in case you hadn't spotted it, there's an alphabetic progression there
Quote
 
 
0 #4 Robert Lilly 2009-12-09 16:26
Awesome article. Now I'm really glad I learned to develop on Android for my augmented reality app instead of some other mobile system. And today I'm going to an interview for an Android developer position.
Quote
 
 
0 #3 Matt Kanninen 2009-12-04 01:32
Preach it brother!
Quote
 
 
0 #2 André 2009-11-24 06:31
Thanks for this article :) I'm sure this will help a lot of Android fans to start their own little project.

For graphics I'm a fan of Inkscape now. It's an awesome piece of software. Especially for doing games and similar stuff. All graphics of my own game Puzzle Blox have been created with Inkscape. Thumbs up!
Quote
 
 
+2 #1 Jeff Watson 2009-11-20 22:10
Great article. I found item #8 Dalvik Debug Monitor Server very useful!
Quote
 

Add comment


Security code
Refresh


Copyright © 2010 Android Academy. All Rights Reserved. Privacy statement. Sitemap.
Android Academy is not associated with Google in any way. All trademarks acknowledged.