UUID of Obex Push Profile
<p>I try to open a socket for listening for incomming connection from a non-android device.</p>

<pre><code> Parcelable[] uuidExtra = device.getUuids(); 
 String t = uuidExtra[0].toString(); 
 t = t.toUpperCase();
 Log.i("UUID: ", t);
</code></pre>

<p>This codesnippet will give me the UUID of the service provided by my bluetooth device. The output from LogCat is:</p>

<pre><code>00001105-0000-1000-8000-00805F9B34FB
</code></pre>

<p>Which I believe is the UUID of Obex Object push profile. I assume this because the manufacture of the device told me that the device only supports on protocol: Obex Push Profile. </p>

<p>When I try to access for instance the second element in my <code>Parcelable[]</code> array, the output will only be </p>

<pre><code>07-12 13:29:36.305: E/AndroidRuntime(6293): java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
</code></pre>

<p>By that I can say for sure that my array only contains <strong>one</strong> object. </p>

<p><strong>So over to more android specific bluetooth stuff.</strong></p>

<p>I'am using this UUID this way:</p>

<pre><code> try {
       tmp = adapter.listenUsingRfcommWithServiceRecord(device.getName(), UUID.fromString(t));
      } catch (IOException e) {
           Log.e(TAG, "FAILED BECAUSE: " + e.getMessage()); } 
</code></pre>

<p>The exception outputs the following to LogCat:</p>

<pre><code>FAILED BECAUSE: Not able to register SDP record for: "name of the device" 
</code></pre>

<p>After a couple of hours googling this exception I still can't figure out how I can open a listening socket for my device. </p>

<p>Any suggestions? Thanks in advance! </p>
