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 ...