Welcome, Guest. Please login or register.

Login with username, password and session length
May 19, 2012, 06:56:39 PM
Pages: [1]
  Print  
Topic: Bluetooth Device/OBEX Search Discovery Question  (Read 1109 times)
« on: December 20, 2007, 12:29:37 PM »
dornad
Newbie

View Profile
*
Karma: +0/-0
Posts: 2



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.
Logged
 
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC