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
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.