android - file.exists() returns false for existing file (for anything different than pdf)

前端 未结 4 812
感动是毒
感动是毒 2020-12-31 05:19

Both files are present on the sdcard, but for whatever reason exists() returns false the the png file.

//String path = \"/mnt/sdcard/Android/data/com.gemoro.         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-31 05:52

    Check that USB Storage is not connected to the PC. Since Android device is connected to the PC as storage the files are not available for the application and you get FALSE to File.Exists().

提交回复
热议问题