Timing out on while trying to connect to Bluetooth during .accept()

I’m trying to set up a bluetooth app to read in data from a prototype medical device for a project. Every time I try to connect to the prototype, or any other device, the app get hung up on the line socket = mmServerSocket.accept(); in public void run(). I have a log before and after the line of code, but it never seems to read the second one.

private class AcceptThread extends Thread {

        // The local server socket
        private final BluetoothServerSocket mmServerSocket;

        public AcceptThread(){
            BluetoothServerSocket tmp = null;

            // Create a new listening server socket
            try{
                tmp = mBluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(appName, MY_UUID_INSECURE);

                Log.d(TAG, "AcceptThread: Setting up Server using: " + MY_UUID_INSECURE);
            }catch (IOException e){
                Log.e(TAG, "AcceptThread: IOException: " + e.getMessage() );
            }

            mmServerSocket = tmp;
        }

        public void run(){
            Log.d(TAG, "run: AcceptThread Running.");

            BluetoothSocket socket = null;

            try{
                // This is a blocking call and will only return on a
                // successful connection or an exception
                Log.d(TAG, "run: RFCOM server socket start.....");

                socket = mmServerSocket.accept();

                Log.d(TAG, "run: RFCOM server socket accepted connection.");

            }catch (IOException e){
                Log.e(TAG, "AcceptThread: IOException: " + e.getMessage() );
            }


            if(socket != null){
                connected(socket,mmDevice);
            }

            Log.i(TAG, "END mAcceptThread ");
        }

        public void cancel() {
            Log.d(TAG, "cancel: Canceling AcceptThread.");
            try {
                mmServerSocket.close();
            } catch (IOException e) {
                Log.e(TAG, "cancel: Close of AcceptThread ServerSocket failed. " + e.getMessage() );
            }
        }

    }

When I watch the values, socket is always null, and mmServerSocket ends up saying: “ServerSocket Type: TYPE_RFCOMM Channel: -1”

I go into debug mode and step into it send call the method below in the BluetoothServerSocket.java class and runs the code below when I step-into.

public BluetoothSocket accept() throws IOException {
    return accept(-1);
}

I’m starting to think its a problem with the code above, or possibly with something I haven’t mentioned. If you have any idea what might be going wrong, any recommendations would be greatly appreciated.