Introducing Sensors

Like location-based Services, Android abstracts the sensor implementations of each device. The Sensor class is used to describe the properties of each hardware sensor, including its type, name, manufacturer, and details on its accuracy and range.

The Sensor class includes a set of constants used to describe what type of hardware sensor is being represented by a Sensor object. These constants take the form of Sensor.TYPE_<TYPE>. The following section describes each supported sensor-type, after which you'll learn how to find and use those sensors.

Mobile Apps Made Easy

Mobile Apps Made Easy

Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.

Get My Free Training Guide


Post a comment