Skip to Content
High Performance Android Apps
book

High Performance Android Apps

by Doug Sillars
October 2015
Intermediate to advanced
262 pages
6h 36m
English
O'Reilly Media, Inc.
Content preview from High Performance Android Apps

Chapter 3. Hardware Performance and Battery Life

In addition to fancy cameras, bigger and brighter screens, and faster, more compact processors, one of the biggest technical features touted with new devices is the size of the battery. Reviews of new devices chart how long the device’s battery will last compared to previous generation models. As users of smartphones, we have taken to carrying battery chargers with us—we have chargers at home, work, and in our cars—to make sure that our devices remain powered.

It is my contention that the devices are fine. The problem is that after you walk out of the store with your new phone, you begin to install apps. Yahoo! reported in 2014 that the average Android device has 95 apps installed, but only 35 are used daily.1 As these apps begin running, they utilize the various hardware functions of the device, and battery drain begins. As customers become more cognizant of this fact, we’ll see more tools to help consumers find apps that are causing high amounts of battery drain.

In this chapter, we’ll look at how apps can utilize the device hardware, and how important it is to optimize these interactions—to speed up the performance of your app. Additionally, by improving the way your app interacts with the device, you will reduce your app’s impact on battery life.

Android Hardware Features

With the number of sensors on today’s Android devices, it seems that there is nothing you cannot do with them. However, as Uncle Ben told young Peter Parker ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Android High Performance Programming

Android High Performance Programming

Enrique López Mañas, Diego Grancini
Learning Embedded Android N Programming

Learning Embedded Android N Programming

Ivan Morgillo, Stefano Viola

Publisher Resources

ISBN: 9781491913994Errata Page