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 967 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 16 Nov 2021, 10:39 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 5 Apr 2022, 15:54 last edited by
      #2

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

      Thanks

      M 1 Reply Last reply 5 Apr 2022, 16:01
      0
      • P paologabo
        5 Apr 2022, 15:54

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

        Thanks

        M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 5 Apr 2022, 16:01 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 5 Apr 2022, 19:24
        0
        • M mrjj
          5 Apr 2022, 16:01

          @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 5 Apr 2022, 19:24 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!!

          E 1 Reply Last reply 23 Nov 2022, 16:04
          0
          • P paologabo
            5 Apr 2022, 19:24

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

            E Offline
            E Offline
            ekkescorner
            Qt Champions 2016
            wrote on 23 Nov 2022, 16:04 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

            E 1 Reply Last reply 12 Jan 2023, 12:23
            1
            • E ekkescorner
              23 Nov 2022, 16:04

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

              E Offline
              E Offline
              ekkescorner
              Qt Champions 2016
              wrote on 12 Jan 2023, 12:23 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