Hi!
Im using the FolderListModel to make a custom file chooser, works perfectly on Windows, iOS and Android 11.
The problem is that on Android 10, do not work at all...
Can you provide me some help with this?
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Window 2.2
import Qt.labs.folderlistmodel 2.2
import ArcGIS.AppFramework 1.0
Rectangle {
visible: false
width: 640
height: 480
Rectangle {
id: mainRect
x: 20
y: 20
width: 300
height: 450
border.color: "black"
radius: 30
ListView {
y: 30
width: parent.width
height: parent.height - 60
clip: true
model: FolderListModel {
id: folderListModel
showDirsFirst: true
folder: "file:///" + AppFramework.standardPaths.defaultFolder(StandardPaths.DownloadLocation).path
// nameFilters: ["*.mp3", "*.flac"]
}
delegate: Button {
width: parent.width
height: 50
text: fileName
onClicked: {
if (fileIsDir) {
folderListModel.folder = fileURL
}
}
background: Rectangle {
color: fileIsDir ? "orange" : "gray"
border.color: "black"
}
}
}
}
Button {
anchors.left: mainRect.right
anchors.leftMargin: 5
text: "back"
onClicked: folderListModel.folder = folderListModel.parentFolder
}
}
That is weird, I have a feeling it might related to the StandardPath, can you try different standard path options to see if we are still seeing the same issue?
https://developers.arcgis.com/appstudio/api-reference/qml-arcgis-appframework-standardpaths/
Erwin.
Hi @ErwinSoekianto !
I try all the others Standard Paths without success. I also tried hardcoding some paths but with the same result...