In this chapter, we will cover the following topics:
Detecting the device orientation
Adjusting the UI orientation
The proximity sensor
Retrieving the battery information
Handling motion events
Handling touch events
Recognizing gestures
Custom gestures
Using the accelerometer
Using the gyroscope