Note that there are some explanatory texts on larger screens.

plurals
  1. POBluetooth Service Name not shown by HTC Wildfire
    text
    copied!<p>I'm working on an app that needs to provide a Bluetooth ServerSocket to some other device. The device I have to work with establishes the connection ignoring the uuid and only looking for devices with correct Service Name.</p> <p>I open the BluetoothServerSocket with the following command:</p> <pre><code>UUID uuid = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); tmp = mBluetoothAdapter.listenUsingRfcommWithServiceRecord("PWAccesP", uuid); </code></pre> <p>My problem is, that the ServiceName is not published by the Android SDP. When I query the available services using sdptool, I get the following output:</p> <pre><code>... Service RecHandle: 0x10008 Service Class ID List: UUID 128: 00001101-0000-1000-8000-00805F9B34FB Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 6 </code></pre> <p>So the Service is available, but the service name is not listed and so my device can't connect.</p> <p>I'm working with an HTC Wildfire with Android 2.1. </p> <p><strong>My question now is, is this a problem of the HTC Bluetooth stack, is it a problem of the Wildfire or is it a problem of Android 2.1?</strong></p> <p>Unfortunately I have no other phones available to check so I ask the community to help me out here... Has anybody encountered this before or knows how to get the Service name to show up?</p> <p>Btw: I was able to verify that the BluetoothSocketServer connects using a different device that connects by uuid rather than by service name.</p> <p>Thanks and regards, Michael</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload