Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Accessing file from Document/ download folder after Scoped storage policy

Accessing file from Document/ download folder after Scoped storage policy

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
android 11filedocumentandroidmobile
6 Posts 4 Posters 970 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MTCA
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • P Offline
      P Offline
      paologabo
      wrote on last edited by
      #2

      Hi, I've the same problem!
      Someone can help us?

      Thanks

      mrjjM 1 Reply Last reply
      0
      • P paologabo

        Hi, I've the same problem!
        Someone can help us?

        Thanks

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @paologabo
        Hi
        It would be very good to mention the Qt version you are using as it could be version related :)

        P 1 Reply Last reply
        0
        • mrjjM mrjj

          @paologabo
          Hi
          It would be very good to mention the Qt version you are using as it could be version related :)

          P Offline
          P Offline
          paologabo
          wrote on last edited by
          #4

          @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!!

          ekkescornerE 1 Reply Last reply
          0
          • P paologabo

            @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!!

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            @paologabo same for me. posted my workarounds: https://forum.qt.io/topic/140952/android-13-devices-api-30-selectfiles-createfiles-qt-5-15

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.8 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            ekkescornerE 1 Reply Last reply
            1
            • ekkescornerE ekkescorner

              @paologabo same for me. posted my workarounds: https://forum.qt.io/topic/140952/android-13-devices-api-30-selectfiles-createfiles-qt-5-15

              ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on last edited by
              #6

              @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 ?

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.8 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved