updateStatus("[SERVER] Device Name: "
+ local.getFriendlyName());
updateStatus("[SERVER] Listening for Client...");
// Open a connection and wait for client requests
final StreamConnectionNotifier service =
(StreamConnectionNotifier) Connector
.open("btspp://localhost:" + uuid
+ ";name=" + SERVICE_NAME_SPP);
connection = service.acceptAndOpen();
updateStatus("[SERVER] SPP session created");
// Read a message
is = connection.openDataInputStream();
final byte[] buffer = new byte[1024];