Chapter    8

Sensors and Location

The Android platform provides built-in sensors for measuring location, motion, orientation, and the characteristics of the surrounding environment. These sensors enable the development of location and environment-aware applications on the Android platform. This chapter explores the various sensors and location devices supported by the Android platform and the Android framework application programming interfaces (APIs) provided in order to interact with these sensors and location devices.


Through the provided sensor APIs, Android applications can monitor the device’s sensors in order to provide a highly interactive and compelling user experience. For example, most game applications extensively use the ...

Get Android Quick APIs Reference 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.