Chapter  7

Maximizing Battery Life

With little power comes great responsibility. Android portable devices run on batteries, and everything your application does draws a certain amount of power from the device's battery. Since most devices are charged at home during the night and will be used during the day when there is no opportunity to recharge the battery, most device owners expect the battery to last at least about 12 hours. Typical usage may cause the battery to drain more quickly: for example, charging stations were available at Google I/O as many were using their devices for periods of time longer than usual during the event.

Even though applications sometimes do not seem to be doing much, it is actually quite easy to draw so much power ...

Get Pro Android Apps Performance Optimization 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.