title: Open a pdf stored in internal storage through an Android Intent
body: <p>I am trying to open a pdf I created in internal storage in a directory.</p>
  
  <p>I even checked in debugger the open pdf code and the Uri and everything is correct but the StartActivity(Intent) fails. Please could someone guide me what maybe the issue?</p>
  
  <pre><code>lvListorder.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int position, long id) {
              File file = new File("/storage/emulated/0/Invoice_RestoManager/Order-20190726_014706.pdf");
              Uri uri = Uri.fromFile(file);
              Intent intent1 = new Intent(Intent.ACTION_VIEW);
              intent1.setDataAndType(uri, "application/pdf");
              startActivity(intent1);
             }
      });
  </code></pre>
  
  <p>I expect the pdfviewer app to open the pdf when this intent gets executed.
  Right now the app crashes.</p>