I am facing an issue when trying to upload an image that is selected via the ActivityStarter component in my application. The error I’m getting is Error 908: READ_EXTERNAL_STORAGE.
I think READ_EXTERNAL_STORAGE is no longer needed in Android 14, so why is this error appearing for me?
what order of files are you trying to access?
Android 14 does not really require READ_EXTERNAL_STORAGE to access media content, however, to access files outside media directories, you may need to use SAF (Storage Access Framework).
I recommend changing the approach to accessing the file using SAF
I want users to be able to upload an image to use as their profile picture. The images are pulled through Activity Starter and then I want to store them on my hosting.
I understand that Android 14 does not require READ_EXTERNAL_STORAGE permission to access media content. I can select the image, but when I store them via FTP, error 908: READ_EXTERNAL_STORAGE appears.
You mentioned that for these cases it would be better to use SAF
Could you give me more details on how to implement SAF to be able to access and upload these images correctly? What would be the recommended procedure?