Error when accessing Android.OS.Environment.ExternalStorageDirectory.Path RRS feed

  • Question

  • User241037 posted

    I'm using Android.OS.Environment.ExternalStorageDirectory path to create a file. This has been working fine. I just updated to the new Xamarin VS build 10/10/16 and now I get a System.UnauthorizedAccessException: Access to the path "/storage/emulated/0/Access.sqlite" is denied. This has been working fine. Would the update break this? I have both READEXTERNALSTORAGE and WRITEEXTERNALSTORAGE permissions on.

    Tuesday, October 11, 2016 12:22 PM

All replies

  • User176749 posted

    @JayBowman here is the solution for you https://blog.xamarin.com/requesting-runtime-permissions-in-android-marshmallow/

    Saturday, October 29, 2016 11:27 AM
  • User377405 posted

    @batmaci said: @JayBowman here is the solution for you httblog .xamarin.com/requesting-runtime-permissions-in-android-marshmallow/

    link broken

    Saturday, November 23, 2019 7:51 PM
  • User176749 posted

    google it

    Saturday, November 23, 2019 9:11 PM