DDMS perspective
DDMS is the most valuable tools that is available to finding out what actually happening at the runtime on the device.DDMS stands for Dalvik Debug Monitoring System. There are several ways to open the DDMS perspective.
1. Open your SDK folder and move to tools folder in SDK folder and select ddms.bat.
2.Open eclipse click on Windows from the title bar menu, then click on open perspective and select DDMS.
This can provide you all the information about what actually going on your device either is emulator or your physical device.
Device Screen Capture
One of the first great tools that's available in the Devices View, is the ability to take a screen cap, an image of what the device screen look like.

.Once you get the captured image, you can either save it or copy it.We'll click Save and save it to your desktop, and accept the default name. Then, close the Screen Capture view. Take a look at my desktop, and here's the captured image. This is useful for documenting your app, but also for marketing. Because when you submit the app to the Google Play store, the Android app store, or any other application distribution channel.
You'll need to provide marketing images, and
this is a great way to get them. But
here's some other valuable tools that were available in the DDMS perspective. You
can also see what's happening inside the app at
run time, such as checking heap memory usage. Click on
the app itself, and this is how the app is known to android, by its main
package. Then click this first button labelled Update Heap, with that button selected we will go to the heap tab and then click Cause GC.
To cause garbage collection to happen then
click
on that event and expand the heap view.And see all sorts of
details about what's going inside the app and the device at
run time in terms of how the app is using memory. There
are also tools for checking allocation of objects,
for tracking network usage and so on. You
can also see what's going on in the device's persistent storage. The
File Explorer tab will show you all sorts of
details, including data storage for both the app and for
the run time.
On a physical device that's not rooted, that
is for you don't have
root permission access, the data folder will appear to be empty. But
on a device that's rooted, or an emulator,
you'll see all sorts of sub folders here. And
you'll be able to see exactly what's happening in data storage.You can also use
DDMS to send messages to an emulator. For
example, if this were an emulator rather
than a physical device, I'd be able to send voice and SMS messages.
Emulating a phone call or an incoming message. And
the System Information tab tells you all sorts of things about everything
going on in that device, all the different processes and applications. So
get to know the DDMS perspective, and you'll be
able to learn a lot about what's going on, on
the device and capture images and do other
useful things to debug and market your application.





0 comments:
Post a Comment