Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    File Operations with QT on Android and in general

    Mobile and Embedded
    2
    2
    416
    Loading More Posts
    • 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.
    • Flaming Moe
      Flaming Moe last edited by

      Wabelabadubdub,

      my system is a Sony Xperia Z2 running Android.

      I´m asking my self how to do fileoperations. For example the simplest things with fopen, fclose, fprintf etc.
      1.) Does Android work with normal .txt files?

      2.) my first stumble is, where would these files be on the system? As far as i understood it, i can´t browse through the filesystem in the phone like on a normal computer. Usually files are located in the program directory if not ohterwise specified. Where would this be on Android? Where the App is, where is it?

      3.) Is there a Qt-based solution, that is not particular to Android?

      Cheerio,
      Moe

      A lovely day for a ̶g̶̶u̶̶i̶̶n̶̶n̶̶e̶̶s̶ DUFF^^

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        QFile and QStandardPaths comes to mind for these tasks

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post