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 path to SD card

How to get path to SD card

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
sdcardstorageandroid
3 Posts 2 Posters 707 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
    Kyeiv
    wrote on 28 Oct 2020, 11:02 last edited by Kyeiv
    #1

    Hello,

    I am trying to get the external SD card path, unfortunately /sdcard path leads to my internal smartphone storage. I have installed TotalCommander on the device and figured out that the actual path is: /storage/646A-1106/

    So my question is how to use API to get this path for different devices?

    P 1 Reply Last reply 28 Oct 2020, 11:35
    0
    • K Kyeiv
      28 Oct 2020, 11:02

      Hello,

      I am trying to get the external SD card path, unfortunately /sdcard path leads to my internal smartphone storage. I have installed TotalCommander on the device and figured out that the actual path is: /storage/646A-1106/

      So my question is how to use API to get this path for different devices?

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 28 Oct 2020, 11:35 last edited by
      #2

      @Kyeiv said in How to get path to SD card:

      how to use API to get this path for different devices

      If you refer to Qt API, you may want to check QStandardPaths class

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      K 1 Reply Last reply 28 Oct 2020, 11:51
      0
      • P Pablo J. Rogina
        28 Oct 2020, 11:35

        @Kyeiv said in How to get path to SD card:

        how to use API to get this path for different devices

        If you refer to Qt API, you may want to check QStandardPaths class

        K Offline
        K Offline
        Kyeiv
        wrote on 28 Oct 2020, 11:51 last edited by
        #3

        @Pablo-J-Rogina i looked through its documentation and i am afraid that it returns only internal storage paths.

        1 Reply Last reply
        0

        2/3

        28 Oct 2020, 11:35

        • Login

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