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. Open an image, play a music or video file using default phone apps - Symbian anna, belle phones - SOLVED!!!
Forum Updated to NodeBB v4.3 + New Features

Open an image, play a music or video file using default phone apps - Symbian anna, belle phones - SOLVED!!!

Scheduled Pinned Locked Moved Mobile and Embedded
13 Posts 3 Posters 4.8k 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.
  • R Offline
    R Offline
    raj.qtdev
    wrote on last edited by
    #1

    Hi,

    In the app that I am doing right now, I will be knowing the path of the image, music file or video file.

    I want to open each file format using the default app of the phone like image should be opened my gallery app, music should be played by default music player and similarly for a video file.

    May I have some suggestions on this or at least pointers to which classes can help me out on these things?

    Thank you so much

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You need to at least give the phone OS you are targeting, otherwise this question would be difficult to answer.

      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
      • R Offline
        R Offline
        raj.qtdev
        wrote on last edited by
        #3

        sorry about that!

        I am targetting symbian 5th edition and above phones running anna, belle

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then I won't be able to help you much, I didn't use these platforms, but you should update your thread's title, this might get the attention of other forum users who work with Symbian

          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
          • R Offline
            R Offline
            raj.qtdev
            wrote on last edited by
            #5

            thanks for the suggestion...did that!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You're welcome !

              If you don't get an answer here you can also try to ask on the interest mailing list

              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
              • R Offline
                R Offline
                raj.qtdev
                wrote on last edited by
                #7

                can you tell me how to do that plz? never done that way

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Nothing complicated:

                  subscribe to "the interest mailing list":http://lists.qt-project.org/mailman/listinfo/interest

                  send a mail with your question

                  make lots of "insert name of preferred beverage"

                  wait and see

                  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
                    mvuori
                    wrote on last edited by
                    #9

                    [quote author="raj.qtdev" date="1376154714"]Hi,

                    I want to open each file format using the default app of the phone
                    [/quote]

                    QDesktopServices::openUrl should do that (in any platform).
                    Like this:

                    QUrl url = QUrl::fromLocalFile(filenameQString);
                    QDesktopServices::openUrl(url);

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      raj.qtdev
                      wrote on last edited by
                      #10

                      thanks buddy...will try that!

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        raj.qtdev
                        wrote on last edited by
                        #11

                        that worked like a charm!!

                        thanks a ton man!

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Right ! I forgot about that one, mostly using it for storage location...

                          If everything is working now, could you update the thread's title to solved so other forum users may know a solution has been found ? :)

                          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
                          • R Offline
                            R Offline
                            raj.qtdev
                            wrote on last edited by
                            #13

                            did that!
                            thanks

                            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