Sending data reception via bluetooth without pairing.
Something I can not figure out:
- Has anyone worked with bluetoothSocket?
- createInsecureRfcommSocketToServiceRecord is what I need?
- those. As I understood it just for sending data without pairing?
If you know, help.
if (BluetoothDevice.ACTION_FOUND.equals(action)) { BluetoothDevice device = (BluetoothDevice) intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); playNotificationSound(); try { if (device.getName().toString().contains("GT")) { bluetoothSocket = device.createInsecureRfcommSocketToServiceRecord(UUID.randomUUID()); } } catch (Exception ex){ ex.printStackTrace(); } }