Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access /storage/emulated/0/

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?

like image 785
nerdy_me Avatar asked Jul 14 '15 06:07

nerdy_me


People also ask

Where can I find storage emulated 0?

Go to the homepage. Select "Internal Storage". At the top of the screen, you will see that the path you are in is the storage/emulated/0 folder.

What is storage emulated 0?

This simply means that /storage/emulated/0/ is a root directory, and you can not really access it. Accessing a file folder on either Internal or External Storage is the same as accessing /storage/emulated/0/ it; however, if you specifically wish to access it, there's another way you can do it.

How do I access storage folder on Android?

Head to Settings > Storage > Other and you'll have a full list of all the files and folders on your internal storage. (If you'd prefer this file manager be more easily accessible, the Marshmallow File Manager app will add it as an icon to your home screen.)


2 Answers

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!

like image 134
Rui Pimentel Avatar answered Oct 05 '22 17:10

Rui Pimentel


Also you can use Android Debug Bridge (adb) to copy your file from Android device to folder on your PC:

adb pull /storage/emulated/0/AudioRecorder/1436854479696.mp4 <folder_on_your_PC_e.g. c:/temp> 

And you can copy from device whole AudioRecorder folder:

adb pull /storage/emulated/0/AudioRecorder <folder_on_your_PC_e.g. c:/temp> 
like image 35
Andrii Omelchenko Avatar answered Oct 05 '22 17:10

Andrii Omelchenko