title: How to program the actions of share activity on Android?
body: <p>How to program the action share activity when click on facebook to share the content.</p>
  
  <p><img src="https://i.stack.imgur.com/xam1U.png" alt="enter image description here"></p>
  
  <p>I create the content facebook but i dont know how indicate when click on facebook share.</p>
  
  <p><img src="https://i.stack.imgur.com/rByn9.png" alt="enter image description here"></p>
  
  <pre><code>Intent sendIntent = new Intent(Intent.ACTION_SEND);
  sendIntent.setType("text/plain");
  sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Compartir");
  sendIntent.putExtra(Intent.EXTRA_TEXT, "Descargar");
  startActivity(sendIntent);
  
  private void shareFacebook(){
  
      shareDialog = new ShareDialog(this);
      ShareLinkContent linkContent = new ShareLinkContent.Builder()
              .setContentTitle("Hello Facebook")
              .setContentDescription(
                      "The 'Hello Facebook' sample  showcases simple Facebook integration")
           .setContentUrl(Uri.parse("http://developers.facebook.com/android"))
              .setImageUrl(...)
              .build();
      shareDialog.show(linkContent);
  }
  </code></pre>