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