如何将蓝牙设备连接到应用程序?

时间:2015-06-11 13:25:57

标签: android android-bluetooth

我从getBoundedDevice获得所有配对和连接的蓝牙设备列表。但我只需要连接的设备。我的代码在这里

  final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
  Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();
  for (BluetoothDevice bt : pairedDevices){    
  Log.e("Paired Devices", bt.getName()+"");
  }

0 个答案:

没有答案
相关问题