Android Device Monitor File Explorer not working with emulator running API 24+

前端 未结 11 994
暖寄归人
暖寄归人 2020-12-13 12:07

So, just as question states. Android device monitor is not showing anything in the File Explorer view. This is only occuring on Virtual Devices running Android API Level 24

11条回答
  •  無奈伤痛
    2020-12-13 12:45

    As another workaround, I use fileList() to get all the files in the Files folder of my app and log it to logcat:

    String[] files = fileList();
    // log files, or add a watch in the debugger...
    

    It is also possible to get the files and directories in your cache folder as well:

    String[] filesInCache = getCacheDir().list();
    

    Or

    File[] filesInCache = getCacheDir().listFiles();
    

提交回复
热议问题