Chapter 8. Optimizing Battery Consumption

Battery consumption and usage are a crucial part of developing high-performance applications in a mobile platform. Whereas in a desktop we do not need to particularly care about the amount of energy being used, since there is a permanent connection to a source of energy, in mobile devices the situation is different and we need to keep an eye on this.

A battery lasts on average on a mobile device up to 36 hours and this time span decreases as the phone starts getting older. This is a particularly reduced amount of time, which makes our devices dependent on being close to an electricity source. Whereas Moore's law is almost still being accomplished and the processing power/unit cost relationship is roughly ...

Get Android High Performance Programming 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.