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. [Solved] iOS and Android Writeable and Persistent folders ??
Forum Updated to NodeBB v4.3 + New Features

[Solved] iOS and Android Writeable and Persistent folders ??

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 2.1k Views 2 Watching
  • 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.
  • P Offline
    P Offline
    PSI_lbc
    wrote on last edited by PSI_lbc
    #1

    I'm trying to write some XML and CSV format files to my Nexxus7 device. I can write to the device and any files that are written can be accessed during the debug session.

    On restarting the program wth the Qt debugger, files created are NOT there.

    On tapping the icon on the device to restart, any file created during the debug session is there.

    Are files created during a debug session not persistent? If so, is there any way to change this behavior?

    I've tried all the following data/documents with the same results...

    /*
      // paths that could be used to read or write user records and app startup-restore configuration
      QString docsPathW = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
      qDebug() << "Main.cpp::writableLocation::DocumentsLocation: " << docsPathW ;
    
      QString dataPathW = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
      qDebug() << "Main.cpp::writableLocation::DataLocation: " << dataPathW ;
    
      // the generic data directory..always available per qt docs..no test for ifexists needed ??
      QString genericdataPath = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation)[0];
      qDebug() << "Main.cpp::standardpath::GenericDataLocation: " << genericdataPath ;
    
      // the cache directory..always available per qt docs..no test for ifexists needed ??
      QString cachePath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation)[0];
      qDebug() << "Main.cpp::standardpath::CacheLocation: " << cachePath ;
    
      // the generic cache directory..always available per qt docs..no test for ifexists needed ??
      QString genericcachePath = QStandardPaths::standardLocations(QStandardPaths::GenericCacheLocation)[0];
      qDebug() << "Main.cpp::standardpath::GenericCacheLocation: " << genericcachePath ;
    
      // the home directory..always available per qt docs..no test for ifexists needed ??
      QString homepath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation)[0];
      qDebug() << "Main.cpp::standardpath::HomeLocation: " << homepath ;
    
      // the documents directory..always available per qt docs..no test for ifexists needed ??
      QString docsPath = QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation)[0];
      qDebug() << "Main.cpp::standardpath::DocumentsLocation: " << docsPath ;
    
      // the data directory..not specified if always available per qt docs..test for ifexists needed ??
      QString dataPath = QStandardPaths::standardLocations(QStandardPaths::DataLocation)[0];
      qDebug() << "--Main.cpp::standardpath::DataLocation: " << dataPath ;
    */
      // the documents directory..always available per qt docs..no test for ifexists needed ??
      QString docsPath = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
      qDebug() << "Main.cpp::standardpath::DocumentsLocation: " << docsPath ;
    
      // the data directory..not specified if always available per qt docs..test for ifexists needed ??
      QString dataPath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
      qDebug() << "--Main.cpp::standardpath::DataLocation: " << dataPath ;
    
    1 Reply Last reply
    0
    • benlauB Offline
      benlauB Offline
      benlau
      Qt Champions 2016
      wrote on last edited by
      #2

      What is your Qt Creator and Qt version? That may happen for old version of Qt Creator for Android. It did a uninstall of package before install new one. Therefore, it will remove files within the package directory. But new version should not have this problem.

      P 1 Reply Last reply
      0
      • benlauB benlau

        What is your Qt Creator and Qt version? That may happen for old version of Qt Creator for Android. It did a uninstall of package before install new one. Therefore, it will remove files within the package directory. But new version should not have this problem.

        P Offline
        P Offline
        PSI_lbc
        wrote on last edited by
        #3

        @benlau said:

        What is your Qt Creator and Qt version?

        Qt 5.3.1 and Creator 3.3.2

        Can I update to a newer version of Creator without using a newer Qt version?

        benlauB 1 Reply Last reply
        0
        • P PSI_lbc

          @benlau said:

          What is your Qt Creator and Qt version?

          Qt 5.3.1 and Creator 3.3.2

          Can I update to a newer version of Creator without using a newer Qt version?

          benlauB Offline
          benlauB Offline
          benlau
          Qt Champions 2016
          wrote on last edited by
          #4

          @PSI_lbc

          @PSI_lbc said:

          Qt 5.3.1 and Creator 3.3.2

          Can I update to a newer version of Creator without using a newer Qt version?

          yes. After launched the new Creator, go to Preference , "Build & Run" -> "Qt Versions". Press "Add" then you may choose old version.

          P 1 Reply Last reply
          0
          • benlauB benlau

            @PSI_lbc

            @PSI_lbc said:

            Qt 5.3.1 and Creator 3.3.2

            Can I update to a newer version of Creator without using a newer Qt version?

            yes. After launched the new Creator, go to Preference , "Build & Run" -> "Qt Versions". Press "Add" then you may choose old version.

            P Offline
            P Offline
            PSI_lbc
            wrote on last edited by
            #5

            @benlau

            Thx.

            1 Reply Last reply
            0

            • Login

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