Accessing file from Document/ download folder after Scoped storage policy
-
Hi,
I am interested to know of way to access files from download/ document folder after the scoped storage policy. I am able to read the files using file path till Android 9, also in Android 10 (with the flag) but for Android 11, the file is no longer visible in the file picker. Since the file is not generated by the app but is manually placed there by end user, it limits the visibility/ access to the app.
Unfortunately, there are no much material on this topic to refer to. Your help will be very much appreciated.Thanks!
-
@paologabo
Hi
It would be very good to mention the Qt version you are using as it could be version related :) -
@mrjj
I'm usign QT 5.15
I have exactly the situation posted by @MTCA
I can access a file generated by the app in the Download folder, but I need to import a KML file received by email or Google Drive. This file seems "invisible" from my app.
All works with "requestLegacyExternalStorage" flag until Android 10.
Thanks for help!! -
@paologabo same for me. posted my workarounds: https://forum.qt.io/topic/140952/android-13-devices-api-30-selectfiles-createfiles-qt-5-15
-
@ekkescorner Assam Boudjelthia has done a great work on this and now prepared cherry-picks for 5.15 🙂
see QTBUG-98974
can someone help and test ?