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 app is not shown, despite set in manifest
Forum Updated to NodeBB v4.3 + New Features

Android app is not shown, despite set in manifest

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 4 Posters 2.1k Views 3 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.
  • canellasC Offline
    canellasC Offline
    canellas
    wrote on last edited by
    #1

    Hi,

    I created a AndroidManifest.xml (Projects\Build Android APK\Create Templates), and on the section Application, item Application Icon, I set the same .png file to all the three DPI.

    However, when I run the app, the icon that appears is not the one I defined, but the default (the Android logo).

    Am I missing something?

    Thanks!

    K 1 Reply Last reply
    0
    • canellasC canellas

      Hi,

      I created a AndroidManifest.xml (Projects\Build Android APK\Create Templates), and on the section Application, item Application Icon, I set the same .png file to all the three DPI.

      However, when I run the app, the icon that appears is not the one I defined, but the default (the Android logo).

      Am I missing something?

      Thanks!

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @canellas

      Are you on creator on windows?

      I have my AndroidManifest.xml on c:...\android
      and there are 2 more folder aside. In the res folder are currently 3 sub-folders and two are holding the icons.

      • c:...\android\res\drawable-hdpi\icon.png

      • c:...\android\res\drawable-ldpi\icon.png

      The medium size is not set in my case.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • canellasC Offline
        canellasC Offline
        canellas
        wrote on last edited by
        #3

        Thank you for your time.

        I am using Linux, and under android/res there are drawable-hdpi, drawable-ldpi and drawable-mdpi folders, and in all of them there is the .png file I set as application icon. I think it is correct, isn't it?

        K 1 Reply Last reply
        0
        • canellasC canellas

          Thank you for your time.

          I am using Linux, and under android/res there are drawable-hdpi, drawable-ldpi and drawable-mdpi folders, and in all of them there is the .png file I set as application icon. I think it is correct, isn't it?

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @canellas

          Sorry, I am on windows and I am still not very experienced.

          All I remember is that the name icon.png for the icons has been generated through the importing into the manifest with creator. Therefore you are needing the different folders. I can't remember that I have seen places where the naming could be changed.

          The only recommendation I could give with my limited experience is to rename the whatever.png to icon.png and see, if it helps.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • canellasC Offline
            canellasC Offline
            canellas
            wrote on last edited by
            #5

            Thanks, but the file name already is icon.png.

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

              Perhaps Android doesn't like the png files? I would check that they are 32 bit with alpha channel as specificied (I don't know if Android discards e.g. 256 colour files, but I wouldn't be surprised).

              1 Reply Last reply
              0
              • GTDevG Offline
                GTDevG Offline
                GTDev
                wrote on last edited by
                #7

                Hi,
                to make Qt app creation for Android and iOS easier, V-Play Engine offers many Components especially made for mobile app development and comes with many open-source demos and project templates you can start your application with.

                These demo projects, for example, also come with a pre-set folder structure and AndroidManifest.xml and Project-Info.plist configurations with icons.

                Hope this helps!

                Best,
                GT

                Senior Developer at Felgo - https://felgo.com/qt

                Develop mobile Apps for iOS & Android with Qt
                Felgo is an official Qt Technology Partner

                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