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 transfer file using WiFi or Activities(on iOS)?
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 791 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.
  • B Offline
    B Offline
    Bayesky
    wrote on last edited by
    #1

    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.HilkJ 1 Reply Last reply
    0
    • B Bayesky

      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.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      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


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

      1 Reply Last reply
      3
      • B Offline
        B Offline
        Bayesky
        wrote on last edited by Bayesky
        #3

        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.

        jsulmJ 1 Reply Last reply
        0
        • B 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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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
          1
          • jsulmJ jsulm

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

            B Offline
            B Offline
            Bayesky
            wrote on last edited by
            #5

            @jsulm
            I maybe use AirDrop for printing and sharing reason : (
            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