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. how to get file path using QT jni object
Forum Updated to NodeBB v4.3 + New Features

how to get file path using QT jni object

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 213 Views
  • 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.
  • J Offline
    J Offline
    JRobles
    wrote on 31 May 2020, 23:20 last edited by JRobles
    #1

    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:

    https://stackoverflow.com/questions/15079406/qt-necessitas-reasonable-qfiledialog-replacement-skin?answertab=active#tab-top

    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' .

    1 Reply Last reply
    0

    1/1

    31 May 2020, 23:20

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved