title: Sending PDF through WhatsApp in Android
body: <p>My intention is to send a PDF file via whatsapp through my application.What happening now is its not opening whatsapp appliation.Below is my code:</p>
  
  <pre><code>                Uri uri = Uri.fromFile(pdfFile);
                  Intent share = new Intent(Intent.ACTION_SEND);
                  //share.setAction(Intent.ACTION_SEND);
                  share.setType("application/pdf");
                  share.putExtra(Intent.EXTRA_STREAM, uri);
                  share.setPackage("com.whatsapp");
                  startActivity(Intent.createChooser(share,""));
  </code></pre>