Hour 13. Creating Your Own “Tricorder”
What You’ll Learn in This Hour
• Using the gyroscope sensor
• Using the magnetic field sensor
• Using the ambient light sensor
• Using the temperature sensor
This hour draws together the information on the Android sensors from the past two hours into one place and adds the additional sensors into a single sample program that displays all of them at once. In addition to those sensors previously covered, several new ones will be included in this final hour on sensors: gyroscope, compass, light detector, and thermometer. Using multiple sensors in one program is useful because you have seen examples with only one sensor at a time up to this point. Although it will be rare ...