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. [solved] How to install android app without connect it with Pc
Forum Updated to NodeBB v4.3 + New Features

[solved] How to install android app without connect it with Pc

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

    I would like to ask two questions about Qt and Android,
    I just finished an application using Qt and I ran it on my Android device connecting it with my Pc

    • My 1st question is how can I install this application in another android device without need to connect it with any Pc and build the project. Which is the appropriate file to send to another device, as a file and install on it?

    • My 2nd is if anyone knows how to change the default android logo. I mean when I install an app in the device, it has a default logo and I can't change it to a more appropriate with my app..

    Thank you in advance!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MontezooM
      wrote on last edited by
      #2
      1. When you run your app with qt creator it create apk file in build/folder/android/bin directory which you can copy and install on other device. In case debug build it called QtApp-debug.apk. In case release you get QtApp-release-unsigned.apk to run it on other device you need to sign it either manual or configure QtCreator to sign it(see project->run->deploy configuration).

      2. You could add custom icon by editing AndroidManifest.xml in your project

      1 Reply Last reply
      0
      • P Offline
        P Offline
        parkir
        wrote on last edited by
        #3

        thank you very much!
        But can you give further details for the second one?
        I can't find where exactly and what type to import my own image in xml file..

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          If you are using Qt 5.1.1 or greater, open the AndroidManifest.xml from QtCreator, it opens in an editor and in it General > Application > Application Icon (Click on the individual boxes and select your file)

          157

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MontezooM
            wrote on last edited by
            #5

            In addition to p3c0's answer. You also could edit AndroidManifest.xml manually. "There":http://stackoverflow.com/a/10817936/1850954 are more info about application icon for Android.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              parkir
              wrote on last edited by
              #6

              p3c0 I am using Qt 5.1.0, is it different in this version??

              MontezooM..I tried to use this method but it gives me this error
              @ Packaging Error: Command 'C:/Program Files/WinAnt/bin/ant.bat clean debug' failed.Exit code: 1@

              any idea plz..

              1 Reply Last reply
              0
              • p3c0P Offline
                p3c0P Offline
                p3c0
                Moderators
                wrote on last edited by
                #7

                Ok, So it must be here,
                QtCreator > Projects > Build & Run > "Your Android kit" > Run > Package Configurations > Application Icon and then click on the individual boxes and select your file

                157

                1 Reply Last reply
                0
                • p3c0P Offline
                  p3c0P Offline
                  p3c0
                  Moderators
                  wrote on last edited by
                  #8

                  Here is the Screenshot:

                  !http://i41.tinypic.com/2mwfig5.png(Application Icons)!

                  157

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MontezooM
                    wrote on last edited by
                    #9

                    It also depends which version of QtCreator you use. In 2.8.1 to add icon you should open AndroidManifest.xml which is placed in "Other files" in your project tree. There is two mode to edit it: "XML Source" and "General". In General you could find "Application icon" field where you could add your icon.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      parkir
                      wrote on last edited by
                      #10

                      thanks a lot!! everything works!

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        vishu
                        wrote on last edited by
                        #11

                        Hai, Parkir

                        I have an app and i ported it to Android, I stuck with very silly issue. i.e, Whenever there is an edittext my android device opens the virtual keybord i want to disable it .. its very easy in android but how to do in Qt please...

                        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