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 deploy the Qt program to android device?
Forum Updated to NodeBB v4.3 + New Features

How to deploy the Qt program to android device?

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 2.2k 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.
  • Z Offline
    Z Offline
    zJinWei
    wrote on last edited by
    #1

    My environment is win7 os, 64bit, setup the "Qt 5.1.0 for Android (Windows 32-bit, 716 MB)". When I click the arrow button to run the release program, that is always run in the emulator.
    If I setup the app_debug.apk that was generated by clicking the arrow button in my android device, that can not run. The app only use the QLabel to show "Hello world" content.
    What is wrong?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Moster
      wrote on last edited by
      #2

      WIthout an error message, it could be anything. Usb debugging could be disabled or your smartphone has a lower API level than your android project. There are several options

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zJinWei
        wrote on last edited by
        #3

        Usb debugging is enabled. My smartphone is android 4.1.6, then I set the target API level to 16, append the content "<uses-sdk android:minSdkVersion="10"/>" in the AndroidManifext.xml file.

        The *.apk file is generated by clicking the arrow button in the Qt Creator, then setup it by other tools. Is this the right way to do it?

        The first time I develop the android app in Qt, could you provide some possible solutions?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Moster
          wrote on last edited by
          #4

          Yes, thats correct, but what is the actual error message? Qt creator usually shows something in the output

          Btw, android 4.1.6 does not exist. Do you have a china phone/tablet? They sometimes have this wrong android version.

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zJinWei
            wrote on last edited by
            #5

            Yes, I use the china phone. When I run the program in my phone, it always popup the error "The program is aborted because encountered a fatal error".

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Moster
              wrote on last edited by
              #6

              Can you try this test APK I made?

              https://mega.co.nz/#!pp8EQCiI!TgGvuE7BL4LaLar9jkwYaivEP04FKO6lrtUS6t6s3d4

              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