title: Open PDF file from raw folder?
body: <p>How can i open a PDFs file from raw folder?
  This code for access PDFs file from SD card.. </p>
  
  <pre><code>File file = new File(getFilesDir(), "teen_ebook.pdf");
  
    try {
  
          if (file.exists()) {
  
              Uri path = Uri.fromFile(file);
              Intent intent = new Intent(Intent.ACTION_VIEW);
              intent.setDataAndType(path, "application/pdf");
              intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
              startActivity(intent);
              Log.e("IR", "No exception");
  
          }
          else {
              Toast.makeText(PdfActivity.this, "File NotFound",Toast.LENGTH_SHORT).show();
          }
      }
      catch (ActivityNotFoundException e) {
  
      Toast.makeText(PdfActivity.this, "No Application Available to View PDF", Toast.LENGTH_SHORT).show();
      }
  </code></pre>
  
  <p>But i want to access PDFs file from raw folder?
  Any one here. Please suggests me.</p>