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

textedit example gives java.lang.SecurityException when saving file on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.0
    • Tested on Windows using Android 10 emulator and Oneplus 5 running Android 10
    • Android

    Description

      textedit example gives error when trying to save file on Android.

      E Qt JAVA : openFdForContentUrl: java.lang.SecurityException: Permission Denial: writing com.android.providers.downloads.DownloadStorageProvider uri content://com.android.providers.downloads.documents/document/20.odt from pid=15830, uid=10613 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission() 
      E Qt JAVA : openFdForContentUrl: java.lang.SecurityException: Permission Denial: writing com.android.providers.downloads.DownloadStorageProvider uri content://com.android.providers.downloads.documents/document/20.odt from pid=15830, uid=10613 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission() 
      W Rich Text: QTextOdfWriter::writeAll: the device cannot be opened for writing
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              eliashautala Elias Hautala
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes