How to get connected Bluetooth device to App?

870 views Asked by At

I am getting all paired and connected Bluetooth device list from getBoundedDevice. But i need only connected devices.my code is here

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

There are 0 answers