小编ner*_*_me的帖子

如何访问/存储/模拟/ 0 /

我编写了一个代码来录制音频并将其保存到文件位置下方.

private String getFilename() {
    String filepath = Environment.getExternalStorageDirectory().getPath();
    File file = new File(filepath, AUDIO_RECORDER_FOLDER);
    if (!file.exists()) {
        file.mkdirs();
    }
    return (file.getAbsolutePath() + "/" + System.currentTimeMillis() + file_exts[currentFormat]);
}
Run Code Online (Sandbox Code Playgroud)

在Logcat中,它为我提供了一个文件位置

/storage/emulated/0/AudioRecorder/1436854479696.mp4

我无法在SD卡上找到此文件位置.如何访问该位置?

android android-sdcard android-file

27
推荐指数
4
解决办法
27万
查看次数

标签 统计

android ×1

android-file ×1

android-sdcard ×1