getAssets()openFD() 失败。
AssetFileDescriptor fileFD=null;
File file = new File(Environment.getExternalStorageDirectory() + "/Music/ckyws8.wav");
fileFD = getAssets().openFd(file.toString()); //FAILS
日志显示:java.io.FileNotFoundException: /mnt/sdcard/Music/ckyws8.wav
即使file.exists()
返回true
和测试:
File tempath = new File(Environment.getExternalStorageDirectory() + "/Music");
int files = tempath.list().length;
for(int f=0;f<files;f++){
Log.d(LOG_TAG,tempath.list()[f].toString());
}
返回一个包含ckyws8.wav
有任何想法吗?