title: Android - Access file from assets \ PDF display
body: <p>I am trying to retrieve a reference to a file stored in the <code>assets</code> directory to a file named <code>myfile.pdf</code>. I have tried to do it as follows:</p>
  
  <pre><code>File file = new File("android_assest/myfile.pdf);
  Log.d("myTag", "" + file.isFile());
  </code></pre>
  
  <p>Somehow, I get <code>false</code> when the <code>myfile.pdf</code> do exists in the <code>assets</code> directory. I verified it using <code>getAssets().list("")</code> and <code>Log.d()</code> each element in the returned array.</p>
  
  <p>More of which, I am trying to get a reference to a PDF file and then use any PDF viewer, which is already installed on the device, in order to view the PDF.</p>
  
  <p>I guess that since the previous issue (retrieving a reference to the file) returns <code>false</code> then the next snipped code fails:</p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_VIEW,
      Uri.parse("file:///android_asset/myfile.pdf"));
  startActivity(i);
  </code></pre>
  
  <p>Anyone has a clue why I am unable to retrieve a reference to the file? and why I cannot use already installed PDF viewer to display a PDF (after retrieving a reference to the PDF file)?</p>
  
  <p>Thanks.</p>