How to access /storage/emulated/0/

nerdy_me picture nerdy_me · Jul 14, 2015 · Viewed 366.9k times · Source

I have written a code to record audio and save it to below file location.

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]);
}

In Logcat, it gives me a file location as

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

I am not able to find this file location on my SD card. How to access the location?

Answer

Rui Pimentel picture Rui Pimentel · Oct 5, 2016

No need for third party apps

My Android 6.0 allows me to browse the intern memory without the need for third party apps. I simply do this*:

  1. "Settings"
  2. "Storage and USB"
  3. "Intern"
  4. [let it load a bit...]
  5. [scroll all the way down]
  6. "Browse"

* Words may not correspond to the standard English version ones, since I'm just freely translating them from Portuguese.

Note: At least in my phone, /storage/emulated/0 does not correspond to SD card, but to intern memory. This method did not work for my external card, but I never tried it with another phone.

Hope this helps!