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

Understanding environmental sensors

Environment-based sensors measure environmental conditions (temperature, humidity, and pressure) around the phone and report values only in one dimension (only one value in the values[] array). Temperature and humidity sensors have an on-change reporting mode, that is, they will report values whenever there is a change in values from the last reported values, whereas the pressure sensor has a continuous reporting mode; that is, it will report values continuously as per the suggested time interval. Environmental sensors are hardware-based and are only available if a device manufacturer has built them into a device. Because of this, it's particularly important that you verify, at runtime, that an environment sensor ...

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