Xamarin Android file system paths

后端 未结 1 922
执念已碎
执念已碎 2021-02-09 06:37

I\'m trying to write and read a file on the Android file system. A task you would think would be straight forward, but I just can\'t seem to find the right enumerator for a fold

1条回答
  •  时光说笑
    2021-02-09 07:17

    I think this is what you need:

    Edit

    public static string Directorypath
        {
            get
            {
                return System.IO.Path.Combine((string)Android.OS.Environment.ExternalStorageDirectory, "FolderPath");
            }
        }
    

    0 讨论(0)
提交回复
热议问题