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
Forum Updated to NodeBB v4.3 + New Features

How to get path to SD card

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
sdcardstorageandroid
3 Posts 2 Posters 738 Views 1 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.
  • K Offline
    K Offline
    Kyeiv
    wrote on 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?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • K Kyeiv

      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?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on 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
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @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 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

        • Login

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