title: How to read a pdf file stored in sdcard using adobe reader installed in the android device?
body: <p><em>i new to android application developemnt. I am trying to open the pdf file stored in sd card.I used this code snippet but this opens the viewer in the device but not the file given in the path. Any help appreciated.</em></p>
  
  <pre><code>    Intent intent = new  Intent(Intent.ACTION_VIEW,Uri.parse("Environment.getExternalStorageDirectory().getPath()+/sample.pdf"));
      intent.setType("application/pdf");
      intent.setPackage("com.adobe.reader"); selects the adobe reader directly 
      PackageManager pm = getPackageManager();
      List&lt;ResolveInfo&gt; activities = pm.queryIntentActivities(intent,0);
      if (activities.size() &gt;= 0) 
              {
      startActivity(intent);
  
  
      } else {
      Toast.makeText(this, "No Application Available to View PDF",
  
          Toast.LENGTH_SHORT).show();
      }
  </code></pre>