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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.