Problems with searching for available device, via bluetooth, in android
问题 My app should just check, via bluetooth, if there is certain Arduino server around, and toast proper message. This is the code when user presses button to search for server: public void onClick(View v) { Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices(); if (pairedDevices.size() > 0) { for (BluetoothDevice device : pairedDevices) { if (device.getName().equals("ARD_SPP")) { sendButton.setVisibility(View.VISIBLE); Toast.makeText(ConnectActivity.this, "Arduino server