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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.