Problem with bluetooth service in J2ME don't discoverable

Posted by Fran on Stack Overflow See other posts from Stack Overflow or by Fran
Published on 2010-05-01T20:20:53Z Indexed on 2010/05/01 20:27 UTC
Read the original article Hit count: 196

Filed under:
|
|
|
|

Hi!

I try to create a service with:

LocalDevice localDevice = LocalDevice.getLocalDevice();
localDevice.setDiscoverable(DiscoveryAgent.GIAC);
String url = "btl2cap://localhost:"+uuid.toString()+";name="+name+";authorize=true;authenticate=true;encrypt=true";
L2CAPConnectionNotifier notifier = (L2CAPConnectionNotifier)Connector.open(url);
ServiceRecord = localDevice.getRecord(notifier);
// Set some attributes
// ...       
conn = notifier.acceptAndOpen();
//...

I run this code on a Nokia 5800 and Nokia 2760, with 5800 I can see 2760, but not vice versa, I don't know what is the problem, I have think security problems...

Any ideas?

Thanks!

© Stack Overflow or respective owner

Related posts about service

Related posts about bluetooth