Mobile phone sensors

Let's first review what kind of mobile phone sensors there are and what they report. Most smart devices are now equipped with several built-in sensors that measure the motion, position, orientation, and conditions of the ambient environment. As sensors provide measurements with high precision, frequency, and accuracy, it is possible to reconstruct complex user motions, gestures, and movements. Sensors are often incorporated in various applications; for example, gyroscope readings are used to steer an object in a game, GPS data is used to locate the user, and accelerometer data is used to infer the activity that the user is performing, for example, cycling, running, or walking.

The following diagram shows a couple of examples of what kinds of interactions the sensors are able to detect:

Mobile phone sensors can be classified into the following three broad categories:

  • Motion sensors: This sensor measures acceleration and rotational forces along the three perpendicular axes. Examples of sensors in this category include accelerometers, gravity sensors, and gyroscopes.
  • Environmental sensors: This sensor measures a variety of environmental parameters, such as illumination, air temperature, pressure, and humidity. This category includes barometers, photometers, and thermometers.
  • Position sensors: This sensor measure the physical position of a device. This category includes orientation sensors and magnetometers.
More detailed descriptions for different mobile platforms are available at the following links:

In this chapter, we will work only with Android's sensors framework.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.14.200