title: Bluetooth socket only returns null. Android Bluetooth
body: <p>Iam trying to connect to a socket by using the <code>connect</code> method. Iam generating a String containing the UUID like this:</p>
  
  <pre><code>MY_UUID = UUID.fromString("45341da0-c9c1-11e1-9b21-0800200c9a66");
  </code></pre>
  
  <p>Then constructing a <code>BluetoothSocket</code> like this: </p>
  
  <pre><code>BluetoothSocket tmp = null; 
  </code></pre>
  
  <p>I also want to connect to a specific device by its mac-address:</p>
  
  <pre><code>BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:1B:DC:0F:EC:7E");
  </code></pre>
  
  <p>and then making the <code>bluetoothSocket</code></p>
  
  <pre><code>try {
      tmp = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);    
      } catch (IOException e) {
      Toast.makeText(getApplicationContext(), "Exception1: " + e.getMessage(), Toast.LENGTH_LONG).show();
      }
  </code></pre>
  
  <p>Just for to test I added a breakpoint where the <code>tmp</code> object is been initialized inside the <code>try catch</code>. But it's only containing <code>NULL</code> The remote device does support OBEX OPP, but this is just a layer above the <code>RFCOMM</code> in the bluetooth stack, so I think my device should support RFCOMM for connections. Can anybody tell me why my <code>tmp</code> object is set to <code>null</code>? </p>
  
  <p>Is there anyway I can test whenever the socket is created?  </p>