private void discoverBluetoothDevices() {
    if (_bluetoothService.isDiscovering()) {
      _bluetoothService.cancelDiscovery();
    }

    _bluetoothDevicesAdapter.clearItems();

    for (BluetoothDevice device : _bluetoothService.getPairedDev()) {
      _bluetoothDevicesAdapter.addItem(device);
    }

    _bluetoothService.startDiscovery();
  }
        @Override
        public void onReceive(Context context, Intent intent) {
          String action = intent.getAction();

          if (BluetoothDevice.ACTION_FOUND.equals(action)) {
            BluetoothDevice bluetoothDevice =
                intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);

            if (bluetoothDevice.getBondState() != BluetoothDevice.BOND_BONDED) {
              _bluetoothDevicesAdapter.addItem(bluetoothDevice);
              _bluetoothDevicesAdapter.notifyDataSetChanged();
            }
          }
        }