在我的应用程序中,我有一个显示所有已配对设备的按钮,但我想显示可用但未配对的蓝牙设备。我要用什么代替getBondedDevices来获得可用的设备?
if (mBlueAdapter.isEnabled()){
mPairedTv.setText("Paired Devices");
Set<BluetoothDevice> devices = mBlueAdapter.getBondedDevices();
for (BluetoothDevice device: devices){
mPairedTv.append("\nDevice: " + device.getName()+ ", " + device);