title: How to enable high speed Bluetooth (3.0+HS or 4.0) in Android?
body: <p>So I have a BT client and a server application on two Bluetooth 4.0 android phones. The server waits for a connection via </p>
  
  <pre><code>BluetoothServerSocket serverSocket = mBluetoothAdapter.listenUsingRfcommWithServiceRecord(SDP_NAME, UUID.fromString(SDP_UUID));
  </code></pre>
  
  <p>and the client connects to it via</p>
  
  <pre><code>socket = device.createRfcommSocketToServiceRecord(UUID.fromString(SDP_UUID));
  </code></pre>
  
  <p>Then, using a AsyncTask, I am sending data in an endless loop from the client to the server.</p>
  
  <pre><code>byte[] buffer = new byte[4096];
  outputStream.write(buffer);
  </code></pre>
  
  <p>I calculated the speed and only got around 230KByte/s, which is exactly the 2,1 MBit/s that Bluetooth EDR offers. How to I send the data via Bluetooth HS (24 MBit/s)?</p>