Since: API Level 5
package

android.bluetooth

Classes | Description

Provides classes that manage Bluetooth functionality, such as scanning for devices, connecting with devices, and managing data transfer between devices.

The Bluetooth APIs let applications:

  • Scan for other Bluetooth devices
  • Query the local Bluetooth adapter for paired Bluetooth devices
  • Establish RFCOMM channels/sockets
  • Connect to specified sockets on other devices
  • Transfer data to and from other devices

To perform Bluetooth communication using these APIs, an application must declare the BLUETOOTH permission. Some additional functionality, such as requesting device discovery, also requires the BLUETOOTH_ADMIN permission.

For a detailed guide to using the Bluetooth APIs, see the Bluetooth Dev Guide topic.

Note: Not all Android devices are guaranteed to have Bluetooth functionality.