9. Tuning Your Bike: Optimizing Performance, Memory, and Power

It never gets easier, you just go faster.

Greg LeMond

In the last chapter you invited friends for a ride using social network integration. You did this visually by integrating the entire photo taking process into the On Your Bike application. In this chapter, you will fix a design flaw of the application, which is the unpredictable behavior of the timer. You will do this by setting the application to run as a service, which will optimize the user experience and help keep the timer running consistently.

Power management can greatly affect the user experience and in this chapter you will learn how to see what your application is consuming as well as how Android handles power management. ...

Get Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.