title: Bluetooth sending to a MAC address
body: <p>I want to send some file via bluetooth to another device which is not discoverable. I have its MAC address. </p>
  
  <p>I couldn't find any code/tutorial/help regarding this. </p>
  
  <p>I pieced out a few things together from the documentation. </p>
  
  <p>There is a bluetoothAdapter class which has a function, </p>
  
  <p><code>getRemoteDevice(String address)</code></p>
  
  <p>this will return a <code>BluetoothDevice</code> object to me. Then I can use </p>
  
  <p><code>BluetoothDevice.createRfcommSocketToServiceRecord()</code> to create a socket and call </p>
  
  <p><code>connect()</code> to attempt a connection to the remote device. </p>
  
  <p>This however is not establishing a connection between the devices. (If I am doing it correctly.)</p>
  
  <p>Can someone highlight or provide a code snippet of how to actually accomplish this connection and then send some file over?</p>
  
  <p>Any help is much appreciated!</p>