我有一个应用程序需要在应用程序专用目录中创建一个文件,但是该文件需要是公共的,以便另一个应用程序可以编辑它,因此我需要像这样的路径"/storage/emulated/0/Android/data/com.my.app/files"
我已经查看了Xamarin文档,并找到了我需要的内容。根据那个文档,我可以使用这个方法Android.Content.Context.GetExternalFilesDir(string type)
。
但是当我调用该方法时,我会收到此错误:
An object reference is required for the non-static field, method, or property 'Context.GetExternalFilesDir(string)'
我也已经查看了这个论坛,但没有运气。
有什么办法解决这个问题吗?