Top Banner
Android Device Monitor
17
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Android Device Monitor

Page 2: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Android Device MonitorAndroid Device Monitor is a stand-alone tool that provides a graphical user interface for several Android application debugging and analysis tools. The Monitor tool does not require installation of an integrated development environment, such as Eclipse.

Page 3: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

History & AvailabilityThe Device Monitor is included in the standard Android SDK.

It was recently updated to incorporate a more Eclipse-like visual format.

Page 4: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Other Monitoring Tools

There aren’t any other tools advertised specifically as Android monitoring tools. Though some other tools included with the Android SDK are used for monitoring.

Page 5: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Sustainability and Performance

Because the Monitor tool is included as part of the Android SDK, it is kept updated by Google.

Page 6: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Benefit / Cost

Since it’s free, and already installed on your computer, there is no cost to using it for Android debugging.

Page 7: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Running the ToolThe tool can be run from the /tools directory in the android sdk folder.

Just type ‘monitor’ from the command line to run the ‘monitor.bat’ file.

Page 8: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Running the Tool

Page 9: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Practical Use

The tool can be used to monitor apps on any running emulators, or connected debuggable device.

Page 10: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Practical UseThe Monitor tool encapsulates 5 main tools:● DDMS● Tracer for OpenGL ES● Hierarchy Viewer● Systrace● Traceview

Page 11: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Practical Use - DDMS● DDMS is integrated

into Eclipse, and ifyou’ve done any Android develop-ment before, you’ve probably used this tool.

Page 12: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Practical Use - Tracer for OpenGL ES

The Tracer tool tapsinto the rendering back-end of the device, whenyou start a selected app, it takes a seriesof screenshots.

Page 13: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Practical Use - Hierarchy Viewer

The Hierarchy tool is perhaps the most useful part of the Monitor program: it allows you to view a tree-based diagram of any selected activity from your emulator/connected device.

Page 14: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Practical Use - Hierarchy Viewer

Page 15: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Practical Use - Systrace/Traceview

The Systrace tool can take a ‘snapshot’ of your device’s running processes and execution times, as well as disk activity and application threads.

The Traceview tool can be used to graphically view the execution logs after they are recorded.

Page 16: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

Practical Use - Systrace/Traceview

The results of thetrace are formattedinto an HTMLreport. Which can be read by Traceview

Page 17: Isaac van houten-iv104109-3rd_toolreview-androidmonitor

ThoughtsThe Android SDK ships with many powerful tools, and I don’t think that many developers are aware of the many applications of said tools.That being said, I haven’t personally used them much, so I can’t tell for sure if they’re worth the trouble.