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()+"");
}