© Andrés Colubri 2017

Andrés Colubri, Processing for Android, https://doi.org/10.1007/978-1-4842-2719-0_7

7. Reading Sensor Data

Andrés Colubri

(1)Broad Institute, Cambridge, Massachusetts, USA

Android devices read data from the physical world around us using numerous sensors, such as accelerometers, gyroscopes, and magnetometers. In this chapter, we will learn how to access this data from our Processing sketch using the Android SDK and the Ketai library.

Sensors in Android Devices

Nowadays, almost every mobile device, from smartphones to activity trackers, is equipped with a wide range of hardware sensors to capture data about the movement, environment, and location of the device (and, by extension, of ourselves). Android devices commonly contain ...

Get Processing for Android: Create Mobile, Sensor-Aware, and VR Applications Using Processing 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.