O'Reilly logo

Sams Teach Yourself Android Game Programming in 24 Hours by Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 13. Creating Your Own “Tricorder”

What You’ll Learn in This Hour

Encapsulating the Android sensors

• 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required