Android Phones Sensors
The Android sensor framework allows you to access many types of sensors on your device. Some of these sensors are hardware-based and some are software-based. Hardware-based sensors are physical components built into a handset or Android device.
They derive their data by directly measuring specific environmental properties, such as acceleration, geomagnetic field strength, or angular change. Software-based sensors are not physical devices, although they mimic hardware-based sensors.
Software-based sensors derive their data from one or more of the hardware-based sensors and are sometimes called virtual sensors or synthetic sensors. The linear acceleration sensor and the gravity sensor are examples of software-based sensors.
Few Android-powered devices have every type of sensor.
For example, most handset devices and tablets have an accelerometer and a magnetometer, but fewer devices have barometers or thermometers. Also, a device can have more than one sensor of a given type. For example, a device can have two gravity sensors, each one having a different range.
1. Acceleration Sensor (Hardware):
Measures the acceleration force in m/s2 that is applied to a device on all three physical axes (x, y, and z), including the force of gravity.
2. Magnetic Field Sensor:
Measures the ambient geomagnetic field for all three physical axes (x, y, z) in μT.
3. Proximity Sensor (Hardware):
Measures the proximity of an object in cm relative to the view screen of a device. This sensor is typically used to determine whether a handset is being held up to a person's ear.
4. Light Sensor (Hardware):
Measures the ambient light level (illumination) in lx.
5. Gyroscope Sensor (Hardware):
Measures a device's rate of rotation in rad/s around each of the three physical axes (x, y, and z).
6. Gravity Sensor (Software or Hardware):
ensures the force of gravity in m/s2 that is applied to a device on all three physical axes (x, y, z).
7. Rotation Vector Sensor (Software or Hardware):
Measures the orientation of a device by providing the three elements of the device's rotation vector.
Measures the orientation of a device by providing the three elements of the device's rotation vector.
8. Linear Acceleration Sensor (Software or Hardware):
Measures the acceleration force in m/s2 that is applied to a device on all three physical axes (x, y, and z), excluding the force of gravity.
9. Orientation Sensor (Software):
Measures degrees of rotation that a device makes around all three physical axes (x, y, z). As of API level 3 you can obtain the inclination matrix and rotation matrix for a device by using the gravity sensor and the geomagnetic field sensor in conjunction with the get RotationMatrix() method.
10. Gyroscope Sensor (Hardware):
Measures a device's rate of rotation in rad/s around each of the three physical axes (x, y, and z).
No comments