In this chapter, we looked at the two new proximity and light sensors and developed a small app using them. We also learned how to turn on and turn off the flashlight using the proximity sensor and adjust the screen brightness using the light sensor. We understood how to wake up the application processor when it's in suspended mode using wake locks. We looked at the wakeup and non-wake up sensors and their FIFO queues.
In the next chapter, we will learn about motion sensors (accelerometer, gyroscope, linear acceleration, gravity, and significant motion) and position sensors (magnetometer and orientation). We will also explore the newly introduced fingerprint sensor.