title: Arduino HC-05 with Android BluetoothChat Sample
body: <p><strong>Background</strong></p>
  
  <p>I'm working on a project to connect an Android app with an Arduino board through bluetooth (Arduino Uno with an HC-05 module).  So I started development from the Arduino side, temporarily using the Bluetooth Terminal apps on the Play Store to simulate any data I have to transfer.  Now I'm moving onto the Android side of it.</p>
  
  <p>Naturally, I went straight for the BluetoothChat sample (<a href="https://developer.android.com/samples/BluetoothChat/index.html" rel="nofollow">https://developer.android.com/samples/BluetoothChat/index.html</a>) to get a head start.  Googling online, it seems a one line change should get to BluetoothChat connected to my HC-05 module.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>So I can't connect my BluetoothChat to the Arduino with HC-05.  The Arduino project should work, it connects fine to a variety of Bluetooth Terminal apps on the Play Store.</p>
  
  <p>The only change I have made to the BluetoothChat sample is changing the code in BluetoothChatService.java:</p>
  
  <p>From</p>
  
  <pre><code>    // Unique UUID for this application
  private static final UUID MY_UUID_SECURE =
          UUID.fromString("fa87c0d0-afac-11de-8a39-0800200c9a66");
  private static final UUID MY_UUID_INSECURE =
          UUID.fromString("8ce255c0-200a-11e0-ac64-0800200c9a66");
  </code></pre>
  
  <p>To</p>
  
  <pre><code>// HC-05 UUID  "00001101-0000-1000-8000-00805F9B34FB"
  private static final UUID MY_UUID_SECURE =
          UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
  private static final UUID MY_UUID_INSECURE =
          UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
  </code></pre>
  
  <p>I was under the impression that was the only change I needed to make to allow my BluetoothChat sample to start moving.  Something like this (<a href="http://blog.onaclovtech.com/2012/04/modifying-bluetooth-chat.html" rel="nofollow">http://blog.onaclovtech.com/2012/04/modifying-bluetooth-chat.html</a>), albeit it looks to be an older version of BluetoothChat.</p>
  
  <p>Any help would be much appreciated.  Thanks!</p>