i wont to send message to another mobile by that code :
public void send(){
try {
String add = ((RemoteDevice) de.elementAt(l.getSelectedIndex())).getBluetoothAddress();
//url = "btspp://" + add + ":" + uuid;
url=disa.selectService(uuid,ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
String mess = "wellcom";
n = (StreamConnectionNotifier) Connector.open(url);
sc=(StreamConnection)n.acceptAndOpen();
os=sc.openOutputStream();
os.write(mess.getBytes());
os.close();
sc.close();
System.out.println(url);
} catch (Exception e) {
System.out.println(e);
}
System.out.println(url);
}
but i have an error that is :
Warning: To avoid potential deadlock, operations that may block, such as
networking, should be performed in a different thread than the
commandAction() handler.
plase in that time help me>>>>>>>>>>