在我的android应用程序中,我在使用此函数获得的目录中创建文件(注意,它放在一个子目录中)。gsFile = new File(getCacheDir(), "test/aa.txt");File dir = new File(getCacheDir(), "test/aa.txt");但它在文件f上崩
但当从getCacheDir()播放时,这是一个错误。我的结论是不是MediaPlayer不能播放来自getCacheDir()的文件?下面是一个代码片段: File fFile = new File(VocaPreview.this.getCacheDirFileInputStream fisAudio = new FileInputStream(fFile);