Skip to Content
Android Sensor Programming By Example
book

Android Sensor Programming By Example

by Varun Nagpal
April 2016
Intermediate to advanced content levelIntermediate to advanced
194 pages
4h 37m
English
Packt Publishing
Content preview from Android Sensor Programming By Example

Wake locks, wakeup sensors, and the FIFO queue

All Android applications run on a dedicated Application Processor (AP), which is a part of the main CPU of the phone. This application processor is designed in such a way that it goes into the suspended mode when the user is not interacting with the phone. In this suspended mode, it reduces the power consumption by 10 times or more, but this freezes all the applications in the background. To work around this problem, the Android platform provides a solution using wake locks. If an application has to perform some important operation in the background and doesn't want the application processor to go into suspended mode, then it has to request a wake lock from the system's power service. Once the important ...

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.
Start your free trial

You might also like

Android High Performance Programming

Android High Performance Programming

Enrique López Mañas, Diego Grancini
Android Things Projects

Android Things Projects

Francesco Azzola
Learning Embedded Android N Programming

Learning Embedded Android N Programming

Ivan Morgillo, Stefano Viola

Publisher Resources

ISBN: 9781785285509Supplemental Content