Folder added on Android is not visible via USB

后端 未结 8 944
青春惊慌失措
青春惊慌失措 2020-11-30 01:18

I\'m trying to save pictures in a subfolder on Android. Here\'s a bit of my code:

File path = Environment.getExternalStoragePublicDirectory(Environment.DIREC         


        
8条回答
  •  遥遥无期
    2020-11-30 01:36

    I have solved this problem by toggling the phone setting:

    1. After a directory is created and/or a file saved, change from (MTP) mode to USB (SD card) mode for a moment, wait for the SD card mounting on the PC, so the directory and file will be shown.

    2. Turn back to (MTP) mode again where the last file still shows up.

    3. When re-saving a file, you have to change to USB again to see it.

提交回复
热议问题