【发布时间】:2016-06-28 12:07:50
【问题描述】:
我希望能够使用 Android 的内部存储。我发现了一些代码 sn-ps,例如:
string path = Application.Context.FilesDir.Path;
var filePath = Path.Combine(path, "test.txt");
System.IO.File.WriteAllText(filePath, "Hello World");
但我不知道这里有什么应用程序。
对于那个或不同的观点有什么解决方案吗? 谢谢:)
【问题讨论】:
-
Application 是一个静态字段,引用您的应用程序
标签: android xamarin storage internal