O'Reilly logo

Android Programming Concepts by Trish Cornez, Richard Cornez

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

8 Sensors and Camera

Chapter Objectives

In this chapter you will:

  Understand Motion Sensors, Environmental Sensors, and Positional Sensors.

  Learn how to acquire measurement data from a sensor.

  Explore the SensorEvent class and SensorEventListener interface.

  Create applications using the accelerometer.

  Learn to utilize the built-in camera application.

  8.1 Sensors and Mobile Devices

Android devices come with a varied set of embedded sensors; collectively, these sensors enable the creation of applications across a wide range of domains, such as gaming, healthcare, social networks, safety, environmental monitoring, and transportation. A sensor is simply a device that measures a physical quantity (e.g., the tilt of a device, ...

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