Connection between android and PC bluetooth applications
I am working on a bluetooth application which involves connection of my android bluetooth application with a server running on computer. The server is also a bluetooth application made using blue-cove api. 

The problem i am facing now that i am unable to make connection between my mobile app and that computer server application.

here is my code for android app:

     try {
                // Connect the device through the socket. This will block
                // until it succeeds or throws an exception
                mySocket = myDevice.createRfcommSocketToServiceRecord(MY_UUID);
                mySocket.connect();
                toast = Toast.makeText(context, "Connection established",   thisClass.duration);
                toast.show();
              } catch (IOException connectException) {
                // Unable to connect; close the socket and get out
                try {
                    mySocket.close();
                    toast = Toast.makeText(context, "Connection not established", thisClass.duration);
                    toast.show();
                } catch (IOException closeException) { }
                return;
            }

Where is the problem or what possibly i am missing in it. And also i am having ambiguity in the understanding of socket.connect() method. Kindly help me in this regard. 

 
Connection between android and PC bluetooth applications
===

I am working on a bluetooth application which involves connection of my android bluetooth application with a server running on computer. The server is also a bluetooth application made using blue-cove api. 

The problem i am facing now that i am unable to make connection between my mobile app and that computer server application.

here is my code for android app:

     try {
                // Connect the device through the socket. This will block
                // until it succeeds or throws an exception
                mySocket = myDevice.createRfcommSocketToServiceRecord(MY_UUID);
                mySocket.connect();
                toast = Toast.makeText(context, "Connection established",   thisClass.duration);
                toast.show();
              } catch (IOException connectException) {
                // Unable to connect; close the socket and get out
                try {
                    mySocket.close();
                    toast = Toast.makeText(context, "Connection not established", thisClass.duration);
                    toast.show();
                } catch (IOException closeException) { }
                return;
            }

Where is the problem or what possibly i am missing in it. And also i am having ambiguity in the understanding of socket.connect() method. Kindly help me in this regard. 

 