switch (device.getBondState()) { | switch (device.getBondState()) { | ||||
case BluetoothDevice.BOND_BONDING: | case BluetoothDevice.BOND_BONDING: | ||||
Log.d("BlueToothTestActivity", "正在配对......"); | Log.d("BlueToothTestActivity", "正在配对......"); | ||||
break; | break; | ||||
case BluetoothDevice.BOND_BONDED: | case BluetoothDevice.BOND_BONDED: | ||||
Log.d("BlueToothTestActivity", "完成配对"); | Log.d("BlueToothTestActivity", "完成配对"); |