Qt Forum

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

    Unsolved How to transfer file using WiFi or Activities(on iOS)?

    Mobile and Embedded
    3
    5
    421
    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
      Bayesky last edited by

      My app needs some accessory files made by Excel. So, I want to import them to my app. To combat this import-problem, some app use WiFi others use Activities(download files from other app, and open them choosing the one).
      Which method is easier to implement?
      Thanks.

      J.Hilk 1 Reply Last reply Reply Quote 0
      • J.Hilk
        J.Hilk Moderators @Bayesky last edited by

        hi @Bayesky
        if you want to use AirDrop or the share file feature of iOS than I'm afraid there's no easy way to implement that.
        You'll have to go native/Objectiv-C with that.

        @ekkescorner has a nice block post about this general topic:
        https://blog.qt.io/blog/2017/12/01/sharing-files-android-ios-qt-app/

        however, if you want to download the files from an ftp server in the network or something along that line. You can do that easily with QNetworkAccessManager

        Or you could make an app with a wifi socket connection (tcp/udp) and share your data that way. That should be rather easy as well

        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

        Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply Reply Quote 3
        • B
          Bayesky last edited by Bayesky

          Thank you very much for your prompt reply and detailed content supplied.
          If using wifi socket connection (tcp/udp), I wonder how to know cellphone's IP so that I can use the browser to access the specified directory of my mobile phone normally.

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @Bayesky last edited by

            @Bayesky If you want to access files hosted on your phone via FTP you will need to have an FTP server running on your phone. I doubt this will be possible on a not-rooted device because of security reasons.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            B 1 Reply Last reply Reply Quote 1
            • B
              Bayesky @jsulm last edited by

              @jsulm
              I maybe use AirDrop for printing and sharing reason : (
              Thanks.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post