title: Send file via intent action_send to another device with result code and use it
body: <p>I'm using this code to send a file to another device:</p>
  
  <pre><code>            Intent i = new Intent(Intent.ACTION_SEND);
              i.setType("image/*");
              i.putExtra(Intent.EXTRA_STREAM, uri);
              startActivity(Intent.createChooser(i, "Send File"));
  </code></pre>
  
  <p>This works very well, but I need to get a result code, if the file is received on the other device.</p>
  
  <p>Also I want to use the received file in the same application on the other device.</p>