I have updated my app to API level 29 so it broke my image picking mechanism. Eariler everything was working fine. Now when I searched over forums/stackoverflow I came to know that I have to migrate to scoped storage framework in order to make it work. I found 2 things so far
- opt out of scoped storage
- Read the stream and write into cache directory so that my app can access it.
My question is that is it mandatory to copy the file for using it. If yes I'm afriad to use this approach as it will consume lot of time because my app uses large videos which we upload to server.
Is it possible to use this framework to just read the URI of image/video without copying to cache directory ? Did anyone worked on it ?
for reference I followed these articles