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 store a file in an internal location on an Android Phone?

How to store a file in an internal location on an Android Phone?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidstorageqt6.3.1widget applicat
2 Posts 2 Posters 344 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.
  • K Offline
    K Offline
    Kokoy
    wrote on 9 Oct 2022, 09:52 last edited by
    #1

    I am working on a QT application for Android phones. I want to know how does one store a file internally on Android device. Most of the things I saw related to the subject are old or use the AndroidExtras library which was removed from the latest versions of QT. like 6.3.0, 6.3.1 etc....

    Let's say you generated a file in the app, how do you store it in some location on the Phone like a folder you created?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      skycrestway
      wrote on 9 Oct 2022, 15:09 last edited by
      #2

      Use QStandardPaths::writeableLocation to find the proper location. Use QDir and QFile to finish the save.

      1 Reply Last reply
      1

      2/2

      9 Oct 2022, 15:09

      • Login

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