Battery Issues

Mobile devices are just that—mobile. This means that they are not always connected to a power source. They rely on batteries for their power, and batteries can be drained. Your job as a developer is to not drain those batteries unnecessarily. This is not just a courtesy issue. If every time your app is used the user’s device quickly becomes a brick, it will be noticed. An app that quickly drains power will not get used, will get bad reviews, and eventually will not get downloaded at all.

The primary power draw for devices is the display. You cannot do much about that except to make sure that your code is efficient and doesn’t take an unnecessary amount of time to complete the work that the user wants to do. Also, you should make ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android 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.