Skip to Main Content
Advanced Android™ Application Development, Fourth Edition
book

Advanced Android™ Application Development, Fourth Edition

by Joseph Annuzzi Jr., Lauren Darcey, Shane Conder
November 2014
Intermediate to advanced content levelIntermediate to advanced
624 pages
16h 56m
English
Addison-Wesley Professional
Content preview from Advanced Android™ Application Development, Fourth Edition

15. Accessing Android’s Hardware Sensors

The Android SDK provides a variety of APIs for accessing low-level hardware features on the device. In addition to the camera, Android devices might have a number of other sensors and hardware. Some popular device sensors include the magnetic and orientation sensors, light sensors, and temperature sensors. Applications can also access battery state information. In this chapter, you will explore the optional hardware APIs provided as part of the Android SDK.

Interacting with Device Hardware

The Android platform allows unprecedented access to the device’s underlying hardware in a secure and robust manner. Because not all Android devices support or contain all hardware options, it is important to follow ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android Application Development All-in-One For Dummies, 3rd Edition

Android Application Development All-in-One For Dummies, 3rd Edition

Barry Burd, John Paul Mueller

Publisher Resources

ISBN: 9780133892420Purchase book