title: Android how to get file path from /res/raw/
body: <p>I put my bash script in <code>/res/raw/</code> folder in my Android Studio Project. How can I get the path to the file to execute it using exec?</p>
  
  <p>I try to this:</p>
  
  <pre><code>InputStream scriptFile = activity.getResources().openRawResource(R.raw.file); // script path
  </code></pre>
  
  <p>But I can not get file path</p>