thanks Vlad
But the problem is If i run 2 instances of this program on PC they can
communicate but this does not happen between mobile and PC.
Server URL:
private final static String UUID
="0x102030405060708090A1B1C1D1E10073¨;
LocalDevice device = LocalDevice.getLocalDevice();
device.setDiscoverable(DiscoveryAgent.GIAC);
String URL="btspp://localhost:" + UUID ;
StreamConnectionNotifier notifier = (StreamConnectionNotifier)
Connector.open(URL);
StreamConnection conn = notifier.acceptAndOpen(); // Blocks!
Client URL:
String url=((ServiceRecord) btServicesFound.elementAt(deviceID))
.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,
false);
StreamConnection con=(StreamConnection)Connector.open(url);
Can u tell me what is the problem & how can i communicate between PC
and mobile ?