我有一个cheerapp.mp3
在我/res/raw
文件夹的Android资源文件
所以我的代码是
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();
}
我得到了文件未找到错误。为什么?
在此处发布您的错误 – 2013-02-26 03:52:18