在我的 Xamarin Android 应用程序中,我将屏幕截图存储在以下路径 System.Environment.SpecialFolder.MyDocuments 中。当我在 Windows 模拟器上运行应用程序时,这个文件到底存储在哪里?我几乎搜索了整个系统,但没有运气。我再次引用了互联网上的许多链接,但没有运气。我可以在 Windows 10 系统上看到这些数据的确切位置。我将其设置为使用以下代码的文件路径是 string filepath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments)+"/Screen1.png";
在调试时,我可以看到文件路径的值为“/data/user/0/ArcGISAndroid.ArcGISAndroid/files/Screen1.png”
当我尝试使用应用程序中的本地目录时,出现以下错误:{Java.IO.FileNotFoundException: C:\T\sampless.png: open failed: EROFS (Read-only file system) ---> Android.Systems .ErrnoException: open failed: EROFS (Read-only file system) --- End of internal exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <3fd174ff54b146228c505f23cf75ce71>:0 at Java。 Interop.JniEnvironment。
他们是在 Xamarin.Android 中将文件存储在本地以交叉检查它们的一种方式吗?