Exemplo n.º 1
0
 private void ConnectDevice(Intent data, bool secure)
 {
     // Get the device MAC address
     string address = data.GetExtras().GetString(DeviceListActivity.EXTRA_DEVICE_ADDRESS);
     // Get the BluetoothDevice object
     BluetoothDevice device = mBluetoothAdapter.GetRemoteDevice(address);
     // Attempt to connect to the device
     mChatService.Connect(device, secure);
 }