Published on Feb 22,2017
2.7K Views
Email Post

Introduction to DDMS : Android Debugging Tool

The following video tutorial gets you started with DDMS.

Android comes with debugging tool called DDMS. The DDMS stands for Dalvik Debug Monitor server. The many uses of DDMS are port forwarding services, screen capturing on device, threat & heap information on the device & logcam.

The tutorial gives you a ddms perspective in the eclipse environment.

Here are the steps to view the list of emulators:

1) Open DDMS at the top right corner of Eclipse

2) Click on Device panel on the left

3) The lists the emulators and the process associated with emulators can be viewed here.

Enabling DDMS

1) Open Eclipse & click on windows

2) View or open perspective

3) Click on the other option and enable DDMS.

Your DDMS is enabled!

It is important to know that under the devices section you can also update the threads. There are options on the same to stop updating as well.

The second component in DDMS is the Allocation trackers which tracks the objects inside the memory of applications. Important information like how many objects is allocated, how many are re-allocated, when the tracking has to be started is available here.

Tracking Created Objects

If you want to start tracking objects which are getting created while using applications:

1) Click on get allocations

2) You can view the allocation tracker retrieving information

3) This will give you a gist of how many allocations and how many re-allocations are there

Also the adjacent option called ‘Get Allocation’ will allow the allocation tracker to retrieve information.  Secondly, Network Statistics window will show the kind of network speed one has.

Apart from that the File Explorer shows the device’s file structure and what all files are inside the device.

Also every single application resides in the device with its package name.

Locating your Package

To know package location:

1) Go to data folder

2) Click on another data folder within that folder

3) In this case the package is ‘comedureka.firstandroid’.

 Kindly keep in mind that these files are found only on the emulator.

Every developer when working on an application must know when it is  running or crashing. The DDMS tool helps you answer that question with Logcat. Logcat gives you status of your applications which makes it the only point of reference to know about your application status.

The Video will give a brief demonstration of operating a smartphone through the emulator.

If in case you plan to setup the latitude or longitude on emulator when not working on the device, you can click on Location controls and then to manuals where you can change it.

Got a question for us? Mention them in the comments section and we will get back to you. 

Related Posts:

Understanding Android Emulators

Notification in Android

Android SDK Installation

Start your Android Development Course

About Author
edureka
Published on Feb 22,2017

Share on

Browse Categories

Comments
0 Comments