File dir = android.os.Environment.getDownloadCacheDirectory();
file = new File(dir + File.separator + "Music1.mp3");
if (!file.exists()) {
file.getParentFile().mkdirs();
file.createNewFile();
}
fos = new FileOutputStream(file);
inputStream = urlConnection.getInputStream();
onfile.createNewFile ()
抛出异常:
System.err(275): java.io.IOException: Permission denied
我怎么解决这个问题?