title: new File ( path ) always says that there is no file
body: <p>my problem is a little bit tricky to describe.</p>
  
  <p>I have a separated resources folder in my project (and in the apk-file).  </p>
  
  <pre><code>String path = "/resources/instruments/data/bongo/audio/bong1.wav";  
  </code></pre>
  
  <p>I can already use it with</p>
  
  <pre><code>url = StreamHelper.class.getClassLoader().getResource( path );
  url.openStream();
  </code></pre>
  
  <p>but actually I want to load the file into the SoundPool.
  I tried it this way:  </p>
  
  <pre><code>SoundPool soundPool = new SoundPool(  5, AudioManager.STREAM_MUSIC, 0 );  
  soundPool.load ( path, 1 );
  </code></pre>
  
  <p>... but i always get an error information: "error loading /resourc..."</p>
  
  <p><a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.6_r2/android/media/SoundPool.java#SoundPool.load%28java.lang.String%2Cint%29" rel="nofollow"> load(String path, int )</a>
  On this link I've seen that I need the correct path for File</p>
  
  <pre><code>File file = new File( path );
  if( file.exists() ) 
       //always false but i thing if it would be true soundPool.load should work too
  </code></pre>
  
  <p>Now my question: how has the path to be that it works. Or is there any other idea for my problem (p.e. with the AssetManager) ?</p>
  
  <p>Btw. I know that there are special Android ways to get resources like R.id.View ... but in my case it would be not easy to handle.</p>
  
  <p>Thanks!</p>