奇怪的问题。在设置中有首选外部安装,权限等没有问题。
但在搭载 Android 4.4.2 的联想 A7600-H 上,我无法使用Application.persistentDataPath
.
例如,
var path = Application.persistentDataPath + "/save.sv"
File.WriteAllText(@path , str);
没有错误。如果之后检查文件是否存在,File.Exists(path)
它将返回false
.
往哪个方向挖?
一般来说,我不知道里面是什么
Application.persistentDataPath
等等。我决定明确地走内部存储器的路径: