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

Get Android Programming Concepts now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.