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

Reducing power usage

Your average Android device will spend most of its life on battery power. Unlike a desktop computer, which is plugged into a power source a lot of the time, if your Android application uses a lot of processor time or graphics processing, your user will notice the difference. If they install your application on their mobile phone or tablet, and suddenly the battery life decreases dramatically, they will do two things. Firstly, they will uninstall your app (which is not good). Secondly, they will hate you forever.

This section is most useful with animations that are based on surfaces, although all animations that require a lot of operations will benefit from testing. For example, if you use a lot of custom ValueAnimators to ...

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