0

I am learning about bluetooth functionality in android. I came across BluetoothDevice.EXTRA_DEVICE and intent.getParcelable(). My question is what is parcelable and why is it used with BluetoothDevice.EXTRA_DEVICE and intent.getParcelable()

I referred this answer but it doesn't answer

why is it used with BluetoothDevice.EXTRA_DEVICE

Aditya
  • 325
  • 6
  • 19

1 Answers1

0

EXTRA_DEVICE contains the BluetoothDevice that the intent applies to.

device has information about device name, address, type,...

Amirhosein
  • 4,266
  • 4
  • 22
  • 35
  • I want to know why do we need to use `intent.getParcelableExtra()` for getting `EXTRA_DEVICE`. – Aditya Nov 28 '20 at 08:27