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 access Music folder in Windows Phone 8.1?
QtWS25 Last Chance

How to access Music folder in Windows Phone 8.1?

Scheduled Pinned Locked Moved Mobile and Embedded
windows phone8.1access filesd card
6 Posts 4 Posters 2.2k 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.
  • L Offline
    L Offline
    lemta2000
    wrote on 29 Jun 2015, 17:39 last edited by
    #1

    I'm trying find out the way to access music folder in windows phone 8.1 then read file by QFile, and after some days searching on the web but still no answer. Anyone did this?
    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Jun 2015, 07:28 last edited by
      #2

      Hi and welcome to devnet,

      I don't have a Windows Phone to verify but are you using QStandardPaths with MusicLocation for that ?

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

      L 1 Reply Last reply 30 Jun 2015, 13:56
      0
      • S SGaist
        30 Jun 2015, 07:28

        Hi and welcome to devnet,

        I don't have a Windows Phone to verify but are you using QStandardPaths with MusicLocation for that ?

        L Offline
        L Offline
        lemta2000
        wrote on 30 Jun 2015, 13:56 last edited by
        #3

        @SGaist yes, I have tried it as below:
        QStringList musicPaths = QStandardPaths::standardLocations(QStandardPaths::MusicLocation);
        QMessageBox::information( 0, "info", musicPaths.first(), QMessageBox::Ok);
        but show empty path, I think QStandardPaths does not work on WP8.1 (audio too)
        I'm thinking about write one Windows Runtime Component in c++ and use with Qt, but I don't know how to deploy my dll along with Qt to target. I have import mydll.lib in .pro file but it still not work (dll was not found when run target).

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 30 Jun 2015, 20:43 last edited by
          #4

          You have the deployment guide here that should help you

          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
          0
          • M Offline
            M Offline
            mkalinow
            wrote on 10 Dec 2015, 08:20 last edited by
            #5

            You also need to set a capability to have access to the Music library.

            Even after that, there might be some additional issues depending on what you want to achieve. You can check the bugtracker for items about this topic.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hamer
              wrote on 14 Dec 2015, 08:11 last edited by
              #6

              I have not used Qt on WinRT for a while but as far as I remember direct access (without using a file picker) will not work due to sandboxing. WinRT uses StorageFile objects (instead of FILE stuff known from C) and Qt caches these StorageFile handlers internally but only after using a picker.

              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