Hello everyone,
I'm trying to build a program that is stuck in an infinite loop, searching for OBEX services in cellphones, and register them in a MySQL database. The following algorithm explains my code:
- Search for devices
- if a device is found, search for OBEX support (UUID 1105)
- if OBEX support is found, write connection url and device name to database
- in inquiry completed, I call again agent.searchServices(null, uuidSet, remoteDevice, this);
The problem is that, after the service is discovered in the first device, suddenly, the whole device discovery is ended with DiscoveryListener.INQUIRY_TERMINATED, which is strange, since I'm never calling DiscoveryAgent.cancelInquiry().
I'm attaching my DiscoveryListener impl.
Thanks,
Daniel.