Summary

We learned about all the motion sensors (accelerometer, gyroscope, linear acceleration, gravity, and significant motion) and position sensors (magnetometer and orientation) in detail. We also looked at the newly introduced fingerprint sensor and its supporting APIs.

In the next chapter, we will take our understanding of motion sensors (particularly the accelerometer) to the next level, and we will use the accelerometer sensor to develop an algorithm to detect walking, jogging, and running activities. We will also learn two new sensors, that is, the step detector and step counter.

Get Android Sensor Programming By Example 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.