однако я не могу настроить таргетинг на это местоположение.
У меня включены разрешения р>
Код: Выделить всё
Код: Выделить всё
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")
);
Пробовал FileSystem.Current.AppDataDirectory, но все равно
Подробнее здесь: https://stackoverflow.com/questions/792 ... id-storage
Мобильная версия