Today's mobile devices are equipped with very advanced hardware, be it accelerometers to detect motion and orientation, proximity sensors, GPS modules and, among many other components, sophisticated multitouch screens.
In this chapter, we will focus on how to use this hardware within our apps to provide the user with an experience that extends into the 3D world. Specifically, we will discuss how to adjust the user interface orientation according to the position of the device, how to use the proximity sensor, and how to read the battery information. In a series of four tasks, we will learn how to capture user touches on the screen and recognize gestures.
Last but not least, we will create advanced apps that read the raw data from the accelerometer and gyroscope sensors to detect the device motion and rotation with detailed and simple guides.