Код: Выделить всё
fun Bluetooth() {
val pairedDevices: Set? = BluetoothAdapter.bondedDevices
pairedDevices?.forEach { device ->
val deviceName = device.name
val deviceHardwareAddress = device.address // MAC address
}
Я пытался прочитать документацию BluetoothAdapter и не могу понять, как использовать функцию getBondedDevices(). Любая помощь будет принята с благодарностью!
Подробнее здесь: https://stackoverflow.com/questions/752 ... ndroid-app
Мобильная версия