Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Open files with application by extension (*.extension) on Android/iOS. How?

    Mobile and Embedded
    2
    4
    236
    Loading More Posts
    • 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.
    • B
      bogong last edited by aha_1980

      Hello all!

      I need to solve issue of opening by user files that saved in one application instance on Android on another application instance on iOS. It's kind of data exchange between devices but not via activity handler but through files via email for example.

      The use-case looks like: one user1 on devise storing data in predefined format into file with *.extention and sending it to another user via e-mail and user2 clicking on attached file and this file automatically opening with application.

      How to solve it?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Are you looking for something similar to registering your file extension to associate it with your application ?

        One thing you can try is to use QDesktopServices::openUrl.

        Writing this message, I realise that you expect the system to open your file when clicking on the file in the email message, correct ?

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

        B 1 Reply Last reply Reply Quote 1
        • B
          bogong @SGaist last edited by bogong

          @sgaist
          -- Are you looking for something similar to registering your file extension to associate it with your application ? - yes
          -- Writing this message, I realise that you expect the system to open your file when clicking on the file in the email message, correct ? - yes

          I found this and seeking universal solution in Qt for the case if application is in background already and user clicking by file at this moment.

          1 Reply Last reply Reply Quote 2
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            That article looks interesting ! Thanks for sharing it.

            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 Reply Quote 0
            • First post
              Last post