Why the address of my BluetoothDevice changes every time I relaunch the app?

Viewed 15922

I'm doing some simple scanning + advertising testing on bluetooth LE feature for Android using this sample-code

I'm testing it using a Samsung 6 and a Nexus 9, and for some reason if I leave the app running on the Samsung and restart the app on the Nexus, the next time the Samsung devices finds the other device, it has a different address.

In code:

enter image description here

On the device:

enter image description here

The funny thing it doesn't happen the other way around. (Samsung always has the same address when discovered from the Nexus 9)

  • Is this a common behavior between devices?
  • Is there another way to identify a specific device besides it's mac address?
1 Answers
Related