When scanning with a android.bluetooth.le.BluetoothLeScanner
, after disconnecting a device, that device's BluetoothDevice
object sometimes has a null name.
Specifically, in the same call to my ScanCallback
's public void onScanResult(int callbackType, ScanResult result)
handler, result.getScanRecord().getDeviceName()
returns the device name, but result.getDevice().getName()
returns null.
Could you tell me why this happens? Maybe something I need to call during disconnect to put my device in a good state? Or could this be a problem with what the device is broadcasting? Or a known bug?