13. Optional Hardware APIs

Android devices come in many different shapes and sizes. Some also come with extra features or hardware. Not every device comes with every supported feature, but as a developer, you should be looking to provide experiences that will work with the myriad of available devices. Working with Bluetooth, NFC, USB, and other device sensors gives your application greater functionality and usefulness. In this chapter, you learn about how this hardware is implemented into Android and some of the ways that you can leverage device features.

Bluetooth

Bluetooth support in Android has come a considerable way since it was first introduced in API level 5. This form of Bluetooth is known as Bluetooth Classic. Starting with API 18, ...

Get Android™ Development Patterns: Best Practices for Professional Developers 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.