title: Handle Android file reception on bluetooth
body: <p>I need a way to send two files from an Android based telephone to another and <strong>do something once those files are received</strong>. 
  In the first phone, the server, I used for simplicity the ACTION_SEND Intent, so I do not have to manage the bluetooth connection, discovering new devices and manage paired devices. IT WORKS! (here is the code)</p>
  
  <pre><code>Intent intent = new Intent();
  intent.setAction(Intent.ACTION_SEND_MULTIPLE);
  intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, files);
  intent.setPackage("com.android.bluetooth"); 
  intent.setType("image/jpeg");
  startActivity(Intent.createChooser(intent, "Send Files"));
  </code></pre>
  
  <p>In the client phone I use the ACTON_DISCOVERABLE Intent for the same reason, </p>
  
  <pre><code>Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
  discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 120);
  startActivity(discoverableIntent);
  </code></pre>
  
  <p>It works again, I receive the two files, but here is the problem:</p>
  
  <p>They stored in the default bluetooth folder, while I need them to be in my app specific folder which is in the SD-Card. </p>
  
  <p><strong>I have to change their location and rename them.</strong> How can I do, or better, I know how to do that but, <strong>How could I know when the transfer is finished?</strong> Is there a way to capture the download finished event ?</p>
  
  <p>(If you have the longer way solution to manage the entire bluetooth low-level process, is very accepted, but please I'm very noob with Android so explain me well the entire listing)</p>
  
  <p>Thanks</p>