How to access /storage/emulated/0/

前端 未结 16 2254
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 01:53

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

private String getFilename() {
    String          


        
相关标签:
16条回答
  • 2020-12-13 02:41

    Try it from

    ftp://ip_my_s5:2221/mnt/sdcard/Pictures/Screenshots
    

    which point onto /storage/emulated/0

    0 讨论(0)
  • 2020-12-13 02:42

    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>
    
    0 讨论(0)
  • 2020-12-13 02:44

    To RESTORE your pictures from /storage/emulated/0/ simply open the 100Andro file..there you will see your pictures although you may not have access to them in you pc explorer. There open each picture one by one, go on setting (three dots..) and save the picture. It will show up in the android file 'Pictures' from where you can also copy them by using your explorer. There is no 'save all' function, however so it must be done one by one, but it works.

    QT

    0 讨论(0)
  • 2020-12-13 02:46

    As Hiren stated, you'll need a file explorer to see your directory. If you're rooted I highly suggest root explorer, otherwise ES File Explorer is a good choice.

    0 讨论(0)
  • 2020-12-13 02:48

    In my case, /storage/emulated/0/ corresponds to my device's root path. For example, when i take a photo with my phone's default camera application, the images are saved automatically /store/emulated/0/DCIM/Camera/mypicname.jpeg

    For example, suppose that you want to store your pictures in /Pictures directory, namely in Pictures directory which exist in root directory. So you use the below code.

    File storageDir = Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES );
    

    If you want to save the images in DCIM or Downloads directory, give the below arguments to the Environment.getExternalStoragePublicDirectory() method shown above.

    Environment.DIRECTORY_DCIM
    Environment.DIRECTORY_Downloads
    

    Then specify your image name :

    String imageFileName = "JPEG_" + timeStamp + "_";
    

    Then create the file object as shown below. You specify the suffix as the 2nd argument.

    File image = File.createTempFile(
                imageFileName,  // prefix
                ".jpg",         // suffix
                storageDir      // directory
    );
    
    0 讨论(0)
  • 2020-12-13 02:48

    for Xamarin Android

    Using command //get the file directory

    Image image =new Image() { Source = file.Path };
    

    then in command adb pull //the image file path here

    0 讨论(0)
提交回复
热议问题