[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Android bluetooth unable to register SDP record

Posted on 2011-04-25
3
Medium Priority
?
3,635 Views
Last Modified: 2012-06-27
I'm using the Android development sample project BluetoothChat.
http://developer.android.com/resources/samples/BluetoothChat/index.html I'm running it on an Archos 43 and trying to communicate with a serial to bluetooth adapter. To communicate with the adapter I need to use UUID 00001101-0000-1000-8000-00805F9B34FB. However, when I do that, the call to listenUsingRfcommWithServiceRecord() throws an exception.

The error message is 04-25 21:05:33.278: ERROR/BluetoothChatService(3321): java.io.IOException: Not able to register SDP record for BluetoothChat

The documentation states this happens when "on error, for example Bluetooth not available, or insufficient permissions, or channel in use"

If I change the UUID by one bit I do not have this problem.  So I don't think it's a not available or insufficient permissions problem.  I guess it's possible that some other app on the Archos is using that UUID but I've power cycled many times with no success.

Anyone know why I cannot register the SDP record or how I can clear any existing records?

As a side note, this exact same code has no problem running on a Motorola Droid, only the Archos has the problem.
try {
            	Log.e(TAG, "Ready to listen");
            	//FAILS HERE
                tmp = mAdapter.listenUsingRfcommWithServiceRecord(NAME, MY_UUID);
            } catch (IOException e) {
                Log.e(TAG, "listen() failed", e);
            }

Open in new window

0
Comment
Question by:JohnSantaFe
  • 2
3 Comments
 
LVL 92

Expert Comment

by:objects
ID: 35480609
could the uuid be reserved?
0
 

Author Comment

by:JohnSantaFe
ID: 35484134
I suppose it could be reserved but I'm not sure how to tell that in Android.  Also I don't know what other application would be using the UUID for SPP.
0
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 35487893
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
Simple Linear Regression
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question