Closed GoogleCodeExporter closed 9 years ago
I have managed to find an explanation of the problem. I traced the problem to
this
line:
discoveryAgent.searchServices(null, null, remoteDevice,
serviceDiscoveryListener);
The second parameter is an array of UUIDs, I developed the code initially
using the
Avetana implementation and it accepts this parameter as null. It turns out
that the
BlueCove implementation does not accept null for this parameter. Replacing the
null
with
UUID[] uuidSet = new UUID[1];
uuidSet[0] = RFCOMM_PROTOCOL_UUID;
solves the problem.
So, now I explicitly searching for the RFCOMM protocol which is suitable at the
moment but I wonder how I would search for any service.
John Lawler
jwlawler@yahoo.com
Original comment by jwlaw...@yahoo.com
on 2 May 2007 at 2:48
I'll fix crashes JVM
But discoveryAgent.searchServices(null, null, ...) Is not valid case!
It is not working on Phone with JSR-82 e.g. SE K790. It is giving NullPointer
Exception.
Original comment by skarzhev...@gmail.com
on 8 May 2007 at 9:49
Original comment by skarzhev...@gmail.com
on 4 Jun 2007 at 6:23
Original issue reported on code.google.com by
jwlaw...@yahoo.com
on 27 Apr 2007 at 11:27