November 2012
Beginner
432 pages
9h 3m
English
What You’ll Learn in This Hour
• About the Android sensors
• How to access Android sensors
• How to disable screen rotation
• How to use the accelerometer
This hour covers the broader subject of Android sensor programming, tapping into the hardware sensors included in most Android devices (smartphones and tablets). The emphasis of this hour will be on the most common sensor: the accelerometer. We’ll use the code we study in this hour in the next few hours to assist with using other common Android sensors, such as the ambient light sensor, air pressure sensor, and others.
Android devices may or may not come with all of the sensors supported by OS 4.0. The SDK supports the following types of sensors ...
Read now
Unlock full access