title: Android. Custom Intent chooser
body: <p>I wonder, is there any way to choose behavior using <code>Intent.createChooser</code> method?
  For example, I have an image, which I would like send by e-mail, if it's chosen (first option). And on second option I'd like to send <code>sms</code> with the link on this image 
  (For which I'll need complex actions - upload image to the sever, retrieve download link, which I'd like to be in the <code>sms</code> and paste it to the <code>sms</code>)</p>
  
  <p>Could you possibly come up with any suggestion, what should I do to accomplish the second task?</p>
  
  <p>I believe I can send an e-mail with image with something like this:</p>
  
  <pre><code>Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); 
  emailIntent.setType("application/image");
  emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{textMail}); 
  emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Some Subj"); 
  emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Some Extra Text"); 
  emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(fileUri));
  startActivity(Intent.createChooser(emailIntent, "Send mail..."));
  </code></pre>
  
  <p><strong>UPD:</strong> I realized, that what I truly needed is to intercept the user click, if the <code>sms</code> was chosen in intent chooser. So, the question is how it might be accomplished?</p>