Friday, October 21, 2011

Debugging Applications with DDMS

 The Dalvik Debug Monitor Service (DDMS) is a debugging utility that is integrated into Eclipse through a special Eclipse perspective. The DDMS perspective provides a number of useful features for interacting with emulators and handsets and debugging applications.

You can use the DDMS File Explorer to browse files and directories on the emulator or a device You can copy files between the Android file system and your development machine by using the Push and Pull buttons available in the top right-hand corner of the File Explorer tab. You can also delete files and directories by using the Delete button or just pressing the Delete key.


There is no confirmation for this delete operation, nor can it be undone.

For example, if u want add image to your emulator. Find a JPG graphic file, such as a photo, and use the DDMS perspective’s File Explorer to push the file to the /mnt/sdcard/download directory of the emulator. Launch the Gallery application and if the image does not immediately appear, then use the Dev Tools application to perform a media scan and re-launch the Gallery application. Now graphic is visible in the Gallery :)

DDMS can send a number of events, such as simulated calls, SMS messages, and location coordinates, to specific emulator instances. These features are found under the Emulator Control tab in DDMS. These events are all “one way,” meaning that they can be initiated from DDMS, not from the emulator to DDMS.

You can simulate incoming voice calls by using the DDMS Emulator Control tab This is not a real call; no data (voice or otherwise) is transmitted between the caller and the receiver.

To simulate an incoming call to an emulator running on your machine, follow these steps:
  1. In the DDMS perspective, choose the emulator instance you want to call.
  2. On the Emulator Control tab, navigate to the Telephony Actions section and input the incoming number (example: 0505368268)
  3. Select the Voice radio button.
  4. Click the Call button.
  5. In the emulator, you should see an incoming call. Answer the call by clicking the Send button in the emulator or sliding the slider to the right. 
  6. End the call at any time by clicking the End button in the emulator or by clicking the Hang Up button in the DDMS perspective.
You can simulate incoming SMS messages by using the Emulator DDMS Emulator Control tab. You send an SMS much as you initiate a voice call.

Google is really brand :)

1 comment:

  1. Vasif Mustafayev'S Blog: Debugging Applications With Ddms >>>>> Download Now

    >>>>> Download Full

    Vasif Mustafayev'S Blog: Debugging Applications With Ddms >>>>> Download LINK

    >>>>> Download Now

    Vasif Mustafayev'S Blog: Debugging Applications With Ddms >>>>> Download Full

    >>>>> Download LINK HF

    ReplyDelete