0

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()+"");
  }
toesslab
  • 5,092
  • 8
  • 43
  • 62
Venkat
  • 23
  • 4
  • You may find this link helpful: http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset/14993590#14993590 – blueware Jun 11 '15 at 13:52
  • @blueware, Thanks for your response. I have got solution from this link: http://stackoverflow.com/questions/26341718/connection-to-specific-hid-profile-bluetooth-device – Venkat Jun 11 '15 at 15:30
  • Most welcome, glad to know that you got it sorted. – blueware Jun 11 '15 at 15:48

0 Answers0