People
答案 0 :(得分:3)
考虑使用一个Android's default external storage folders,在您的情况下DIRECTORY_MUSIC就像这样
File path = Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_MUSIC);
您可以使用此File class constructor在SD卡上创建新文件夹:
File audioFolder = new File(Environment.getExternalStorageDirectory(),
"newaudiofolder")
if (!audioFolder.exists()) {
boolean success = audioFolder.mkdir()
if (success) {
// save the file
}
}