MediaLibrary.SavePicture method results in a System.UnauthorizedAccessException

前端 未结 1 613
谎友^
谎友^ 2021-01-27 12:31

I\'ve got the following code which handles downloading and saving an Image to the phone\'s media library. It fails with a System.UnauthorizedAccessException as if t

相关标签:
1条回答
  • 2021-01-27 13:07

    Did you add an ID_CAP_MEDIALIB_PHOTO capability to your app's manifest?

    ID_CAP_MEDIALIB_PHOTO

    UnauthorizedAccessException is 99% of the time a missing capability.

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