title: How Bluetooth works
body: <p>Can someone explain to me how Bluetooth actually works when connecting an Android device to another one.</p>
  
  <p>Here is what I think I know.</p>
  
  <p>I have two devices.</p>
  
  <p>One will be a client and the other the server, depending which initiates the connection.
  The Android device will do a search for devices in Discoverable Mode.
  The Android device can list previously paired devices.</p>
  
  <p>A <code>BluetoothSocket</code> is opened to create the connection between the devices.
  Data can now be transfered
  Socket can be closed when completed</p>
  
  <p>Question : if a device shows that there is a connection with a LED, should that LED flicker once the <code>BluetoothSocket.connect()</code> is called.</p>
  
  <p>Is there anywhere I can find literature on how it works ect..</p>
  
  <p>The reason for this question is due to my earlier post :</p>
  
  <p><a href="https://stackoverflow.com/questions/7953760/android-bluetooth-connecting-error">Android Bluetooth Connecting Error</a></p>
  
  <p>I'm not sure If i am actually connected or not. The Android documentation says there is a boolean called BluetoothSocket.isConnected() but I dont seem to be able to find it. so I cant figure out if I am actually connected or not, and I dont know after "being connected" if I can just start sending data.</p>