title: Android RandomAccessFile usage from resource
body: <p>How can I access an Android resource using <code>RandomAccessFile</code> in Java?</p>
  
  <p>Here is how I would like this to work (but it doesn't):</p>
  
  <pre><code>String fileIn = resources.getResourceName(resourceID);
  Log.e("fileIn", fileIn);
  //BufferedReader buffer = new BufferedReader(new InputStreamReader(fileIn));
  
  RandomAccessFile buffer = null;
  try {
    buffer = new RandomAccessFile(fileIn, "r");
  } catch (FileNotFoundException e) {
    Log.e("err", ""+e);
  }
  </code></pre>
  
  <p>Log output:</p>
  
  <pre><code>fileIn(6062): ls3d.gold.paper:raw/wwe_obj
  </code></pre>
  
  <p>The following exception appears in my console:</p>
  
  <pre><code>11-26 15:06:35.027: ERROR/err(6062): java.io.FileNotFoundException: /ls3d.gold.paper:raw/wwe_obj (No such file or directory)
  </code></pre>