测试机:

ZTE U950 

 

现象:

Environment.getExternalStorageDirectory()取到的路径是/mnt/sdcard

 

真相:

/mnt/sdcard/是一个空文件夹!真实路径是/mnt/sdcard-ext 

 

解决:

只能根据Build.MODEL来特殊处理了,如果是zte的设备就直接将sdcard替换成sdcard-ext。谴责一下ZTE,为啥不按标准来?! 

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-07-24
  • 2021-11-10
  • 2021-11-22
  • 2021-07-11
  • 2021-12-21
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2021-07-08
  • 2021-11-20
  • 2022-02-07
  • 2021-08-31
  • 2022-12-23
相关资源
相似解决方案