title: Capturing and intercepting ACTION_SEND intents on Android
body: <p>Currently I have a pretty standard ACTION_SEND intent to share information from inside my app. Code is similar to what is below:</p>
  
  <pre><code>    Intent intent = new Intent(Intent.ACTION_SEND);
      intent.setType("text/plain");
      intent.putExtra(Intent.EXTRA_SUBJECT, subject);
      intent.putExtra(Intent.EXTRA_TEXT, text);
      context.startActivity(Intent.createChooser(intent, title));
  </code></pre>
  
  <p>Now, if the user has the Facebook app installed on their phone then Facebook shows up as an option for the intent chooser. However, I want to intercept the user's click on "Facebook" and use the Facebook SDK to carry out the task instead of the Facebook application already on the users phone. Is there a way to intercept the onClick for the Facebook option? Thanks!</p>