2011/11/14

Devoxx11: Android awesomeness

Chet Haase, Romain Guy and Philip Milne

Android 4.0: Tablet (3.0) & Phone (2.3) reunited

GridLayout: powerful & flexible lay-outing -- way too complex explanation.

Tools for profiling / debugging Android apps. "Experience matters"

  • Memory
    • dumpsys: dump info of processes running on the device
      • adb shell dumpsys meminfocom.android.Launcher: dumps heap usage details
      • dumpsys gfxinfo: graphics chip
      • dumpsys window: decompose window objects used
    • DDMS: heap dump
    • jhat:
      • generate hprof
      • convert it with hprof-conv
      • in eclipse
      • check out "rootset references" for potentially memory leaks
    • MAT: Eclipse Allocation Tracker - http://eclipse.org/mat
  • Performance
    • "use your eyes"
    • DDMS
    • track frames per second -> "trackFPS()" call in a PreDrawListener
  • UI
    • 'crazy' stuff like high speed cams: Casio Ex-F1: replay the animation in slow motion
    • HierarchyViewer:
      • ViewTree
      • PixelPerfectTree
    • ViewServer

No comments: