答案 0 :(得分:0)
是的,您可以将其过滤掉。
private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (BluetoothDevice.ACTION_FOUND.equals(action)) {
// Discovery has found a device. Get the BluetoothDevice
// object and its info from the Intent.
BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
String deviceName = device.getName();
if(deviceName.equals(stringtoCompare) {
// show it
}
}
}
};
结帐this链接
答案 1 :(得分:0)
您是否正在使用Ble扫描来获取扫描结果?