Android bluetooth unable to register SDP record

Posted on 2011-04-25
Last Modified: 2012-06-27
I'm using the Android development sample project BluetoothChat. 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): 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

Question by:JohnSantaFe
    LVL 92

    Expert Comment

    could the uuid be reserved?

    Author Comment

    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.
    LVL 92

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    If your app took Google’s lash recently, here are the 5 most likely reasons.
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now