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. QML FileDialog select folder for save file in Android

QML FileDialog select folder for save file in Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 511 Views 1 Watching
  • 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.
  • FalsinSoftF Offline
    FalsinSoftF Offline
    FalsinSoft
    wrote on last edited by
    #1

    Hi all

    I wan to to use the native android file explorer activity to select a folder where to save file in. Use the android file explorer activity is easy through the FileDialog component- However the fileUrl returned is in a format like:

    content://1233-1122:Download

    Now if I try to add the filename I need to save and, for example, check if file already exist with this url:

    content://1233-1122:Download/myfile.txt

    the operation fails with the error (in logcat)

    checkFileExists(): No permissions to open Uri

    Checking the android documentation I understand the path have to be "authorized" before use. In this case the system authorized only the folder but how I can get the authorization to save my file in selected folder?

    Thank you

    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