Unsolved how to get file path using QT jni object
-
Hello, Im new developing for android and QML , Im finishing my app, but Im stuck trying to select a file to be send to our servers, I was trying to use this codes as example:
https://forum.qt.io/topic/61539/qt-and-android-gallery-mediastore-using-qandroidjniobject
and this one:
but I have only been able to get the URI path, and can't find an example of how to get the real file path, the second code crash my app, and on the first, it can't find the real file path just find an empty string.
also I have read that maybe doing this solution is not warranty to open a native file dialog, and some android versions may not work, is it true? do you suggest to create my own file dialog using QFileSystem and FolderListModel?, like one of the post suggest, and if you do, how can I detect the apps that have storages files on my device like 'Dropbox' or 'Google Drive' .