title: Android: Sending a Mail/SMS/Tweet with Intent.ACTION_SEND / requestCode / resultCode?
body: <p>I'm using the following code :</p>
  
  <pre><code>Intent sendMailIntent = new Intent(Intent.ACTION_SEND); 
          sendMailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.Share_Mail_Subject));
          sendMailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.Share_Mail_Text)); 
          sendMailIntent.setType("text/plain");
  
  startActivity(Intent.createChooser(sendMailIntent, "Email / SMS / Tweet ?"));
  </code></pre>
  
  <p>Then I would like to be able to make the difference between:
  1. my user has indeed sent en email/SMS ... OR
  2. my user has in fact pushed the BACK BUTTON ... and didn't send anything.</p>
  
  <p>Is there a way to make this difference ?</p>
  
  <p>=> Should I launch the activity with startActivityForResult ? and catch the requestCode/resultCode with onActivityResult ...</p>
  
  <p>=> What king of resultCode should I expect ? how to grab it correctly ? Where should I put these lines of code ? Any snippet of code would be very helpful here.</p>
  
  <p>thanks in advance.</p>
  
  <p>Hub</p>