title: FileNotFoundException when opening wav file from android assets
body: <p>In our android app we open wav file located in assets/config/notification.wav. To open and play the sound we are using the following code:</p>
  
  <pre><code>String soundClipPath = "config/notification.wav"
  AssetFileDescriptor afd = mContext.getAssets().openFd(soundClipPath);
  int soundID = mSoundPool.load(afd, 1);
  </code></pre>
  
  <p>This has been working witout any problem for about a year now. Suddenly this has stopped working. We have not updated any dependencies between the builds. The only difference i can find is that the builds working is from last year. It works if we build the apk locally in netbeans but when we build the apk using hudson it doesn't work. I have tried the following with no luck:</p>
  
  <ul>
  <li>Place the wav file in res/raw folder</li>
  <li>Add -0 to maven android plugin</li>
  <li>Verified the file structure and the file is there and working.</li>
  </ul>
  
  <p>We get the following stacktrace when using the code above:</p>
  
  <pre><code>java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
  at android.content.res.AssetManager.openAssetFd(Native Method)
  at android.content.res.AssetManager.openFd(AssetManager.java:331)
  ...
  </code></pre>
  
  <p>And the following when trying to load from res/raw folder:</p>
  
  <pre><code>android.content.res.Resources$NotFoundException: File res/raw/notification.wav from drawable resource ID #0x7f040000
  at android.content.res.Resources.openRawResourceFd(Resources.java:981)
  at android.media.SoundPool.load(SoundPool.java:191)
  ...
  </code></pre>
  
  <p>Can someone please help us out with this strange problem....</p>
  
  <p>Best regards,</p>
  
  <p>Henrik</p>