Making it to find some demo, and no name, which a great god know why is this??????
CodePudding user response:
When scanning a bluetooth device to define a new BluetoothAdapter. LeScanCallback () callback interface object, needs to be rewritten onLeScan method, this method can get the BluetoothDevice objects device, or using other methods can also get a BluetoothDevice objects, this device is the scanning to the bluetooth device, you print the value of the object, you will find some member variables (including bluetooth name) it is null, then calling getname have bluetooth name is null,As for the deeper reason did not know,
CodePudding user response:
This is not any other questions, or is a configuration problem, specific actual test, in order to know where the problem is