Ich kann diesen Standort jedoch nicht als Ziel festlegen.
I Habe Berechtigungen hinzugefügt
Code: Select all
Code: Select all
protected static readonly string _root = Path.Combine(
#if ANDROID
Android.App.Application.Context.GetExternalFilesDir(null).AbsolutePath,
#endif
"Library"
);
...
Directory.CreateDirectory(_root);
File.WriteAllBytes(
Path.Combine(_root, "test.txt"),
Encoding.UTF8.GetBytes("red panda")
);
Ich habe FileSystem.Current.AppDataDirectory ausprobiert, habe aber immer noch das gleiche Problem