Some time ago I made an application to open pdfs. Using Taifun File extenson with a listpicker I selected the pdfs from a specific directory in the internal memory. Yesterday I installed android 11 in my Google Pixel 3a and the listpicker stopped working.
Do you know if it's imcompatible with this version of android?
Hello Anke!
Thank you for your response.
Actually I would have the pdfs first by selecting the directories where they were, this way (but it don't let me select directories anymore):
But even then, i.e. if all subdirectories have been deleted, there should be no runtime error.
He has to ask for READ permission to get rid of this error.
But there should not be any issue if I don't ask for read and write permissions on KitKat and Lollipop, still I have got that error on these versions, when I was newbie to app development.
No, on devices with Android < 6 all permissions (also dangerous permissions like READ_/WRITE_EXTERNAL STORAGE) are granted at install-time. (So no need to ask for them. The permissions must only be declared in the Manifest. And that is the case with the TaifunFile ext.)
I checked it on device with Android 5.0. No issue.
Sorry, I've been without a mobile phone for a while due to a problem with the audio and I haven't been able to try.
Anke Thank you very much!
Now it works for me with android 11. The question now is that the app must work on andoid 9, 10 and also 11. How do I make it detect the version and put the path /storage/emulated/0 or /mnt/sdcard/?