0

I have an Android application with Android version < 9 ,
I've utilized READ_EXTERNAL_STORAGE permission and everything is alright

Now if user installs my application on a mobile device with Android 11, what will happen?

I mean does the permission request works fine again or I shall change something in my code?

I know WRITE_EXTERNAL_STORAGE permission will not work properly and the code shall be changed regarding the scoped storage issue on android 10 and 11

But what about READ_EXTERNAL_STORAGE ?

AndroidPlayer2
  • 336
  • 1
  • 2
  • 11
  • Write and read are treated the same. Why do you think they are not? – blackapps Dec 06 '20 at 15:15
  • Do not try to use the root of external storage. Only the public directories on it that are already there. Then you can do what you want. – blackapps Dec 06 '20 at 15:16
  • It seems Read and Write are not the same for all versions of Android, the documentation specifies there is difference: https://developer.android.com/training/data-storage/use-cases#capture-image-media – AndroidPlayer2 Dec 06 '20 at 15:19
  • Please tell what is different. – blackapps Dec 06 '20 at 15:37
  • Sometimes the documentation specifies using WRITE_EXTERNAL_STORAGE and sometimes it specifies using READ_EXTERNAL_STORAGE, so I think there shall be a difference, don't you agree? – AndroidPlayer2 Dec 07 '20 at 05:03
  • No. I see no difference for different versions of Android as you suggested. And you still did not tell which difference there would be. – blackapps Dec 07 '20 at 08:43
  • So if there is no difference why the document sometimes specifies WRITE_EXTERNAL_STORAGE and sometimes READ_EXTERNAL_STORAGE? – AndroidPlayer2 Dec 07 '20 at 11:08
  • 1
    Read this: https://stackoverflow.com/a/66366102/9917404 – Thoriya Prahalad Feb 25 '21 at 09:56

0 Answers0