16. Using Android’s Optional Hardware APIs

The Android SDK provides a variety of APIs for accessing low-level hardware features on the device. In addition to the camera, Android devices have other hardware resources that developers can take advantage of in their applications, such as Wi-Fi, Near Field Communication (NFC), Bluetooth radios, and a variety of USB connectivity options. In this chapter, you will explore the optional hardware APIs provided as part of the Android SDK.

Working with Bluetooth

Bluetooth APIs have been available since API Level 5, though not all Android devices have Bluetooth hardware. However, this is a popular consumer feature that Android developers can use to their advantage. Android 4.3 (API Level 18) introduced support ...

Get Advanced Android™ Application Development, Fourth Edition 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.