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. Android basics: how to run a QT app on Android?
QtWS25 Last Chance

Android basics: how to run a QT app on Android?

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 4 Posters 4.0k 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.
  • M Offline
    M Offline
    mkcerusky
    wrote on last edited by
    #1

    I am trying to learn to deploy QT apps for Android. I am able to make a simple app and run it on the simultaor in QT Creator (with necessitas of course). But there is a question for which I can't find an answer on the net: how can I run my app on my android phone?
    I tried to build the executable file and copy it on my phone, but it doesn't even know how to handle the file.
    Reading on the net, I found people talking of connecting the android mobile on the pc and run the app from QT Necessitas, but that means having the mobile connected to the PC, while I guess the whole point is to have the app to run independently on the android like any other app.
    Does anyone know how to run a qt app, deploied with QT Creator (Necessitas), on an Android phone?

    Thanks a lot in advance.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jesdisciple
      wrote on last edited by
      #2

      I haven't gotten as far as the simulator yet, but another user (Zappa) told me "it worked after you configure the project to copy over local libraries to the device." After that he was able to run on the phone, but then sound initially didn't work.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mkcerusky
        wrote on last edited by
        #3

        Does it mean that QT Necessitas, in the end, for the moment is totally useless because it does not allow to create standalone qt apps that can run on Android when the phone is not connected to a PC?
        But here on the forum I red of people that have qt apps running on Android (if I did not misunderstand) so there must be a way to create a qt standolne app that runs on Android. Or is it still a mirage?

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

          No, for development purpose, it's faster and easier to copy the local libraries to your device. If you want to debug/test your application and also copy your executable to your phone, the device must be connected to your computer.

          The applications developed either with necessitas or Qt 5.1 use the ministro application to download the needed Qt libraries to one device. This allows to have one set of libraries shared across all Qt applications.

          If you need more information about necessitas, the better place is the necessitas project page and mailing list.

          Hope this helps

          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
          • K Offline
            K Offline
            kingsta
            wrote on last edited by
            #5

            So we should download Qt libs to android phone before download the application which is made with Qt?

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

              No it will be done for you by ministro the first time you start your application

              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
              • K Offline
                K Offline
                kingsta
                wrote on last edited by
                #7

                Thank you. I really wonder new Qt version.

                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