android.bluetooth

Provides classes that manage Bluetooth functionality, such as scanning for
devices, connecting with devices, and managing data transfer between devices.
The Bluetooth API supports both "Classic Bluetooth" and Bluetooth Low Energy.

For more information about Classic Bluetooth, see the
Bluetooth guide.
For more information about Bluetooth Low Energy, see the
Bluetooth Low Energy (BLE) guide.

The Bluetooth APIs let applications:

Scan for other Bluetooth devices (including BLE 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.

Communicate with BLE devices, such as proximity sensors, heart rate
monitors, fitness devices, and so on.

Act as a GATT client or a GATT server (BLE).

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.