Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Speed up your app (Droidcon NYC 2015)

Udi Cohen
August 27, 2015

Speed up your app (Droidcon NYC 2015)

With a great variety of tools for optimizing your Android apps, it's easy to get lost and find it hard to even start working on the problem. This talk will cover how to approach a performance issue by picking the right tool for the job, analyzing the data and track down the culprit. We'll review case studies using Systrace, Traceview, Hierarchy Viewer, Allocation Tracker, Eclipse MAT and others, demonstrating variety of problems that many apps suffer from, and how to solve them.

Video is available here: https://www.youtube.com/watch?v=v3DlGOQAIbw

Udi Cohen

August 27, 2015
Tweet

Other Decks in Programming

Transcript

  1. ??

  2. GC

  3. Measure Performance Indicators Layout Draw Green: view is in the

    faster 50% Yellow: view is in the slower 50% Red: view is the slowest in the tree
  4. Alpha Tips TextView setTextColor() instead of setAlpha() ImageView setImageAlpha() instead

    of setAlpha() Custom Views Handle alpha yourself by overriding onSetAlpha() Override hasOverlappingRendering()
  5. View Pager ! Parallax effect for the pages background !

    Views in the page are moved as we scroll pages
  6. More Resources Android Performance Patterns playlist on YouTube My blog:

    http://www.udinic.com Android Performance Patterns Google+ community (#PerfMatters)