Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Android Debug

2,070 views

Published on

Android: Debug Tips and Tricks

Published in: Technology
  • Be the first to comment

Android Debug

  1. 1. Android: Debug Tips and Tricks Mike Wolfson June 25, 2009
  2. 2. Agenda <ul><li>Android Debug Bridge (adb) </li></ul><ul><ul><li>Logcat </li></ul></ul><ul><ul><li>sqlite3 </li></ul></ul><ul><li>Traceview </li></ul><ul><ul><li>Running </li></ul></ul><ul><ul><li>What to look for </li></ul></ul><ul><li>Other Tools </li></ul><ul><ul><li>Hierarchy Viewer </li></ul></ul><ul><ul><li>Spare Parts </li></ul></ul>
  3. 3. Android Debug Bridge <ul><li>Android Debug Bridge (adb) </li></ul><ul><ul><li>tool for managing emulator instance or Android-powered device </li></ul></ul><ul><ul><li>devices, push/pull, start-server, install, port forwarding, jdwp, shell </li></ul></ul><ul><li>logcat </li></ul><ul><ul><li>Be a good citizen </li></ul></ul><ul><ul><li>Logging severity levels </li></ul></ul><ul><ul><li>Controlling what you see in the log </li></ul></ul><ul><ul><li>adb logcat -b radio/events </li></ul></ul><ul><li>Sqlite3 </li></ul><ul><ul><li>?????? Things you can do </li></ul></ul>
  4. 4. Other Tools <ul><li>Dalvik Debug Monitor Service </li></ul><ul><li>Hierarchy Viewer </li></ul><ul><li>Monkey </li></ul><ul><li>Spare Parts </li></ul>
  5. 5. Logcat settings <ul><li>V — Verbose (lowest priority) </li></ul><ul><li>D — Debug </li></ul><ul><li>I — Info </li></ul><ul><li>W — Warning </li></ul><ul><li>E — Error </li></ul><ul><li>F — Fatal </li></ul><ul><li>S — Silent (highest priority, on which nothing is ever printed) </li></ul>
  6. 6. Traceview <ul><li>What it is </li></ul><ul><ul><li>?????What it is </li></ul></ul><ul><ul><li>????? Advanced stuff not covered </li></ul></ul><ul><li>How to run it </li></ul><ul><ul><li>????Be a good citizen </li></ul></ul><ul><ul><li>????Logging severity levels </li></ul></ul><ul><ul><li>????Controlling what you see in the log </li></ul></ul><ul><li>What to look for </li></ul><ul><ul><li>?????? Things you can do </li></ul></ul><ul><li>Best Practices </li></ul>
  7. 7. Conclusion <ul><li>Performance problems are bugs </li></ul><ul><li>Profile your applications often </li></ul><ul><li>Identify big problems </li></ul>
  8. 8. Questions???

×