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. manifest file seems to be ignored
Forum Update on Monday, May 27th 2025

manifest file seems to be ignored

Scheduled Pinned Locked Moved Solved Mobile and Embedded
15 Posts 4 Posters 2.1k 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by
    #2

    if it is app icon, all icons are created and stored in android/res dir. You do not see it in manifest file.

    mzimmersM 1 Reply Last reply
    0
    • JoeCFDJ JoeCFD

      if it is app icon, all icons are created and stored in android/res dir. You do not see it in manifest file.

      mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by
      #3

      @JoeCFD that's fine, but neither of my changes occurred on the tablet. The app still shows up with the default icon, and in portrait mode. It seems that my changes are being ignored. Is there a run setting I need to specify in order to get this working correctly?

      1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #4

        uninstall your app and reinstall it.

        mzimmersM 1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          uninstall your app and reinstall it.

          mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #5

          @JoeCFD I've tried that a couple times, and it didn't help.

          I'm just using the "run" button in Creator to download the app to the tablet -- is there more I should do when deploying to an Android device?

          Thanks...

          JoeCFDJ 1 Reply Last reply
          0
          • J.HilkJ Online
            J.HilkJ Online
            J.Hilk
            Moderators
            wrote on last edited by J.Hilk
            #6

            question, did you actually create the android templates
            f5fc47b4-a167-4a20-81e7-b0e39e1bd03b-image.png

            or are you trying to modify the auto generated android manifest file, that is remade on each compilation ?


            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.

            mzimmersM 1 Reply Last reply
            1
            • mzimmersM mzimmers

              @JoeCFD I've tried that a couple times, and it didn't help.

              I'm just using the "run" button in Creator to download the app to the tablet -- is there more I should do when deploying to an Android device?

              Thanks...

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #7

              @mzimmers i guess you are running it in android from your machine. It is not installation.
              Copy
              android-build-debug.apk
              from
              build path/android-build/build/outputs/apk/debug
              to your tablet to install it.

              mzimmersM 1 Reply Last reply
              1
              • J.HilkJ J.Hilk

                question, did you actually create the android templates
                f5fc47b4-a167-4a20-81e7-b0e39e1bd03b-image.png

                or are you trying to modify the auto generated android manifest file, that is remade on each compilation ?

                mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by
                #8

                @J-Hilk said in manifest file seems to be ignored:

                question, did you actually create the android templates
                [...]
                or are you trying to modify the auto generated android manifest file, that is remade on each compilation ?

                I created the templates. They got put into an "android" subfolder to my project. When I pressed "Create Templates," it put me into a form editor for AndroidManifest.xml. I made my changes there and saved them.

                1 Reply Last reply
                0
                • JoeCFDJ JoeCFD

                  @mzimmers i guess you are running it in android from your machine. It is not installation.
                  Copy
                  android-build-debug.apk
                  from
                  build path/android-build/build/outputs/apk/debug
                  to your tablet to install it.

                  mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by mzimmers
                  #9

                  @JoeCFD my tablet (a Galaxy Tab A) shows up in an Explorer window, and I can drag a file to it. But it doesn't seem to show up in my tablet. Is there a preferred way to transfer files to the tablet?
                  download.PNG
                  Thanks...

                  JoeCFDJ 1 Reply Last reply
                  0
                  • mzimmersM mzimmers

                    @JoeCFD my tablet (a Galaxy Tab A) shows up in an Explorer window, and I can drag a file to it. But it doesn't seem to show up in my tablet. Is there a preferred way to transfer files to the tablet?
                    download.PNG
                    Thanks...

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by JoeCFD
                    #10

                    @mzimmers I did this on Linux. I copied the apk file to Download dir of my Tablet and do not have any problem to open it for installation. It is a Windows thing and I have no idea. Maybe right click the file to see if there are read, write and executable privileges.

                    https://doc.qt.io/qtcreator/creator-deploying-android.html

                    mzimmersM 1 Reply Last reply
                    0
                    • JoeCFDJ JoeCFD

                      @mzimmers I did this on Linux. I copied the apk file to Download dir of my Tablet and do not have any problem to open it for installation. It is a Windows thing and I have no idea. Maybe right click the file to see if there are read, write and executable privileges.

                      https://doc.qt.io/qtcreator/creator-deploying-android.html

                      mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #11

                      @JoeCFD nothing there about privileges per se:
                      download.PNG
                      I've posted a question to androidforums; we'll see what they might have to say.

                      Thanks...

                      1 Reply Last reply
                      0
                      • TomZT Offline
                        TomZT Offline
                        TomZ
                        wrote on last edited by
                        #12

                        To figure out if the Manifest is included, you can just look at the generated APK and check if the file in there is the same as the one you created.
                        Notice that the apk is a zip file and can be read by any zip app (on Windows you may need to rename it).

                        I noticed on the latest Qt Creator a behavior that may be a bug; on a clean new project I created manifest and Creator popped up a notice saying it could not modify my cmake to register it. The one it created just a minute before and I didn't modify at all...

                        Possibly that is what went wrong for you too and you need to alter your cmake to point to your android subdir, where it expects to find the manifest.

                        mzimmersM 1 Reply Last reply
                        2
                        • TomZT TomZ

                          To figure out if the Manifest is included, you can just look at the generated APK and check if the file in there is the same as the one you created.
                          Notice that the apk is a zip file and can be read by any zip app (on Windows you may need to rename it).

                          I noticed on the latest Qt Creator a behavior that may be a bug; on a clean new project I created manifest and Creator popped up a notice saying it could not modify my cmake to register it. The one it created just a minute before and I didn't modify at all...

                          Possibly that is what went wrong for you too and you need to alter your cmake to point to your android subdir, where it expects to find the manifest.

                          mzimmersM Offline
                          mzimmersM Offline
                          mzimmers
                          wrote on last edited by mzimmers
                          #13

                          @TomZ yeah, I'm still trying to figure out what I'm supposed to put into the android directory.

                          I did unzip the .apk file and there was an AndroidManifest.xml file in it. Oddly, though, it was full of non-printing characters interspersed with the XML. I guess it's formatting it for the Android platform?

                          EDIT:

                          TomZ you were 100% right. Turns out I needed to add this to my CMakeLists.txt file:

                          set_property(TARGET appnga_demo APPEND PROPERTY
                              QT_ANDROID_PACKAGE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/android
                          )
                          

                          Both my icon and landscape mode are now as specified in the AndroidManifest.xml file.

                          Thanks!

                          J.HilkJ 1 Reply Last reply
                          1
                          • mzimmersM mzimmers

                            @TomZ yeah, I'm still trying to figure out what I'm supposed to put into the android directory.

                            I did unzip the .apk file and there was an AndroidManifest.xml file in it. Oddly, though, it was full of non-printing characters interspersed with the XML. I guess it's formatting it for the Android platform?

                            EDIT:

                            TomZ you were 100% right. Turns out I needed to add this to my CMakeLists.txt file:

                            set_property(TARGET appnga_demo APPEND PROPERTY
                                QT_ANDROID_PACKAGE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/android
                            )
                            

                            Both my icon and landscape mode are now as specified in the AndroidManifest.xml file.

                            Thanks!

                            J.HilkJ Online
                            J.HilkJ Online
                            J.Hilk
                            Moderators
                            wrote on last edited by
                            #14

                            @mzimmers also ignore @JoeCFD part of manually copying the app to your device. Deployment, aka coping and installing, of your app is managed by QtCreator just fine, when your project ist set up correctly and you hit (build&)run


                            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.

                            mzimmersM 1 Reply Last reply
                            1
                            • J.HilkJ J.Hilk

                              @mzimmers also ignore @JoeCFD part of manually copying the app to your device. Deployment, aka coping and installing, of your app is managed by QtCreator just fine, when your project ist set up correctly and you hit (build&)run

                              mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #15

                              @J-Hilk yeah, I was wondering about that since my app seemed to remain on the tablet after I quit Creator.

                              I will need to use the APK file for internal distribution (I'm working on a demo for sales/marketing to use). According to the people in one of the Android forums, the pre-supplied file manager for Android is fairly poor. I installed something called Solid Explorer, and now can at least get my APK file onto the tablet. Next step is to try installing from it.

                              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