10. Taking the Training Wheels Off: Testing Your Application

I thought of that while riding my bicycle

Albert Einstein

In the last chapter, you worked hard to optimize the On Your Bike application. You set up the application to run as a service, which made the timer more consistent. You also made sure location sensing was set up as a service, so you could track riders even when the application was not open. You explored and optimized the power consumption of the application and added database indices to speed up database access. You also used the AsyncTask class to speed up database access.

In this book, so far, you have simply fixed errors as they occurred. This can be problematic as it is possible to introduce new errors into the code when ...

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.