title: error in opening pdf file in android,
body: <p>My project in android use html file to navigate pages, and there is a link that will open a pdf file.</p>
  
  <p>here is the html code for the html :</p>
  
  <pre><code>&lt;a href="#" onClick="window.jsinterface.pdf1Click();" style="font-size: 0.9em; padding: 3px 7px 2px 7px; font-family:serif; color:white; text-decoration: none;"&gt;My PDF&lt;/a&gt;
  </code></pre>
  
  <p>and this is the code for in my src.</p>
  
  <pre><code>public void pdf1Click() {
                      handler.post(new Runnable() {
                          public void run() {
  
                          ReadWriteDisplayPDFFile(getResources().openRawResource(R.raw.pdf1),"pdf1.pdf");
                          }
                      });
                  }
  </code></pre>
  
  <p>but when I run my project and click to the link to open the pdf file,
  it can't open the pdf file and i got this error:</p>
  
  <pre><code>Error Writting on /sdcard/myproj/pdf1.pdf
  Please Inserd SD Card
  </code></pre>
  
  <p>and</p>
  
  <pre><code>No Application available to view pdf
  </code></pre>
  
  <p>does anyone have an Idea about my case?
  thanks in advance</p>
  
  <p>logcat:</p>
  
  <pre><code>Error writing /sdcard/myproj/pdf1.pdf 
  java.io.FileNotFoundException: /sdcard/myproj/pdf1.pdf : open failed: EACCES (Permission denied)
      at libcore.io.IoBridge.open(IoBridge.java:416)
      at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:88)
      at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:73)
      at com.sample.AppActivity$JSInterface.ReadWriteDisplayPDFFile(AppActivity.java:146)
  
      START {act=android.intent.action.VIEW dat=file:///sdcard/myproj/pdf1.pdf typ=application/pdf flg=0x4000000 u=0} from pid 626
  </code></pre>