Add folder/files in Genymotion emulator

后端 未结 5 1757
生来不讨喜
生来不讨喜 2020-12-14 00:29

I want to add folder in my Genymotion emulator I also tried this question and follow all instruction but folder is not showing in file manager I also download s

相关标签:
5条回答
  • 2020-12-14 01:01

    I'm not sure whether you're using SD card or not. In case you do, try to look in this folder through DDMS file explorer in Eclipse:

    mnt/shell/emulated/0/MyFiles

    This is where my files go when using standard SD card reference in my code:

    File sdCard = Environment.getExternalStorageDirectory();
    File directory = new File (sdCard.getAbsolutePath() + "/MyFiles");
    
    0 讨论(0)
  • 2020-12-14 01:02

    I solve my problem

    First follow this Answer

    • Go to your VirtualBox VM setting / Shared folder tab
    • Add a shared folder with the folder you want to shared, and check the "auto mount" option
    • Start your VM as usual from the Genymotion software
    • Your shared folder is available in the /mnt/shared directory (multiple shared folders are supported)

    After that Change Settings of file Manager in Genymotion emulator change that to root user so all my folder visible also with Shared folders

    • In Genymotion virtual device, run the application "File Manager" and READ the advertisement about "low-privileged mode".
    • Go to "settings" menu from "File Manager"
    • In "general settings", click on "access mode" and activate "Root access" mode
    • Restart File Manager => all directories will be presented

    Thanks

    Update In newer version of genymotion you can add files/folder by drag and drop. It take some time while adding files in emulator. time depends on file size.

    Update 2 (Based on @GandhyOnly comment)

    To make visible in gallery just drag and drop your images files on emulator they stored in download folder after finish transferring files restart same emulator and images will shown in gallery. Or if you don't want to restart emulator then use following command

    adb shell am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///sdcard/
    

    it will rescan images and show them in gallery. For more detail about command see the actual answer here. I didn't check command I use first method just restart emulator

    0 讨论(0)
  • 2020-12-14 01:03

    I have a more simpler approach to this . Open your genymotion , and just

    drag and drop the file in the required directory

    I am attaching two screenshots in this regard.I had an app that used pictures, after copying by drag and drop i was able to find pictures in file manager through my app. **

    Just drag and drop like following

    **

    And you are done

    It will be copied to Download Folder

    0 讨论(0)
  • 2020-12-14 01:15

    Simply drag and drop onto the emulator the file that you want to use.

    It will be saved in Download folder.

    0 讨论(0)
  • 2020-12-14 01:19

    Simply Drag and drop files from your PC to emulator and after copying data, files will be saved in the DOWNLOAD folder. Remember that to make DRAG and DROP service working, do not open Genemotion Software by ADMINISTRATOR privileges.

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