title: How can I confim that a file was sent successfully via bluetooth using Android 4+
body: <p>I have written an app that sends a file to a laptop via Bluetooth. I would like to be able to delete that file automatically after some confirmation that the file was sent successfully.</p>
  
  <p>I get a Toast message from BlueTooth Share that the file was sent, but how can I detect this from my app?</p>
  
  <p>Is there a callback that I can use for this?</p>
  
  <p>Here is my method for sending the file using Android 4+</p>
  
  <pre><code> File filename = new File(path + "/" + itemValue);
             Uri uri = Uri.fromFile(filename);
             //send file via bluetooth
             Intent intent = new Intent(Intent.ACTION_SEND);
             intent.setType("text/*");
             //this causes us to send via bluetooth only
             intent.setClassName("com.android.bluetooth", "com.android.bluetooth.opp.BluetoothOppLauncherActivity");
             intent.putExtra(Intent.EXTRA_STREAM, uri);
             startActivity(Intent.createChooser(intent, "Send file"));
  </code></pre>