Skip to content

Instantly share code, notes, and snippets.

@erva
erva / AndroidBluetoothSppClientSample.java
Created November 22, 2017 14:11 — forked from sunnyone/AndroidBluetoothSppClientSample.java
Android Bluetooth SPP Client Sample
final String command = "HELO\n";
final UUID sppUuid = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
BluetoothAdapter.getDefaultAdapter();
if (btAdapter == null) {
sendLogMessage("Bluetooth adapter is not available.");
return;
}
sendLogMessage("Bluetooth adapter is found.");