Getting Permission Denial Exception

后端 未结 6 2192
悲&欢浪女
悲&欢浪女 2020-11-27 16:42

I have an activity in my app that allows the user to select several files from the device one by one, I am using an intent like this:

Intent intent = new Int         


        
6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 17:11

    Worth noting is that if the user manually removes permissions for a Uri that you have previously saved, then you will get this same Exception.

    Android settings -> App -> App Name -> Storage -> Clear Access

    You need to check that you still have access to the Uri when you use it.

提交回复
热议问题