O'Reilly logo

Android 3.0 Animations by Alex Shaw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—identifying a problem

Oh boy, we have a bad problem with our BubblesView class. Some nasty gremlin has got into the system and is making it really really inefficient. What can we do? We must investigate as follows:

  1. Get the BuggyBubbles application from the code bundle. This is a simple Activity that displays a BubblesView animation. The activity doesn't do anything else, so we can be confident that we are primarily measuring the animation behavior.
  2. Build the BuggyBubbles activity and send it to your device.
  3. Go in to PowerTutor on your device and start profiling.
  4. Launch the Bubbles, but buggier application and let it run for a minute.
  5. Return to PowerTutor and use the Application Viewer to see how much power it is using.

What just happened? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required