Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92239

Incorporate Android's MediaStore into Qt for Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.1.0 Beta3, 6.2.0 Alpha
    • 5.15, 6.1
    • Core: I/O
    • None
    • Android
    • ea4868c49de48eb5fbd129e8cb9df0676754ebf5 (qt/qtbase/dev) a6507ed6f42fd078d0c9f8de12b653c6fa93ad36 (qt/qtbase/6.1)

    Description

      Android 11 and above enforces the new scoped storage which won't allow Qt to properly manage (read/write) files on Android. The scoped storage was introduced before api 29 but it's being enforced on api 30 so apps need to migrate to the new approach. Android offers a way to opt out of this by using the manifest flag, but this will be ignore starting from api 30.

      android:requestLegacyExternalStorage="true"

      Qt should look for ways to incorporate these changes and make it easier again to handle files i/o. Also, it's worth mentioning that the Storage Access Framework works with Qt and it allows opening/saving files but requires user interaction, but with the MediaStore api it's possible to manage files without user interaction.

      References: 

      Attachments

        For Gerrit Dashboard: QTBUG-92239
        # Subject Branch Project Status CR V

        Activity

          People

            qtandroidteam Qt Android Team
            assam Assam Boudjelthia
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change