07-26-2008 02:06 AM
07-28-2008 09:23 AM
07-28-2008 04:18 PM
When I go into bluetooth options on a blackberry and choose Add Device, it will search for bluetooth devices and display a list. At first the list shows "Phone", "Computer", or maybe "Unknown Device". After the search stops the friendly names are populated.
Nowhere do I have to pair with these devices for the Blackberry to find the "Phone" or "Computer" information. Is this not possible to do from a third party application? Do I have to use the RIM bluetooth API's to do this?
My only other option is to filter based on the friendly name, which I would rather not do because it takes a couple seconds to get the friendly name for a device.
07-29-2008 10:39 AM
Setting up a test application, in 4.3, 4.5, and 4.6, in all cases, I was able to retrieve the values of the major class, minor class, and service class from the DeviceClass retrieved in the discovery.
To initiate the query, use DiscoveryAgent.startInquiry(), specifying a GIAC access code. Add all elements discovered in the deviceDiscovered() method to an array of some sort, keeping refernce to both the RemoteDevice and DeviceClass. Once you receive the inquiryCompleted() event, iterate through your array, accessing the DeviceClass elements you need to narrow down your search results.
07-29-2008 12:31 PM
07-29-2008 01:14 PM
07-29-2008 02:06 PM