cheerapp.mp3
我的/res/raw
文件夹中有一个
所以我的代码是
String filepath="/res/raw/cheerapp"; //or cheerapp.mp3
file = new File(filePath);
FileInputStream in = null;
try {
in = new FileInputStream( file );
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
我找不到文件的错误。为什么?