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. Two apps are seemingly recognized by andriod phone as the same
Qt 6.11 is out! See what's new in the release blog

Two apps are seemingly recognized by andriod phone as the same

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 901 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.
  • L Offline
    L Offline
    Luffy97
    wrote on last edited by Luffy97
    #1

    Hello,

    I have trouble understanding why two apps that I created an apk for in QT creator cannot be installed while the other one is installed on my andriod device.

    When none of the apps are installed, I can install either of them without any issue. But if I want to install the second one without deinstalling the the other it seems to recognize them as the same, because there is a window saying like "do you want to update an existing app?". It seems as though it cannot differentiate them. I know they aren't the same app, because when installing them individually while the other one is uninstalled, it shows the two different apps.

    I thought it has something to do with the allias or the name of the certificate or even the passworts for the signed apks, but no, even if they are different in every of these catagories, the problem still remains.

    Does anyone have a clue why that is?

    Best regards

    Paul ColbyP 1 Reply Last reply
    0
    • L Luffy97

      Hello,

      I have trouble understanding why two apps that I created an apk for in QT creator cannot be installed while the other one is installed on my andriod device.

      When none of the apps are installed, I can install either of them without any issue. But if I want to install the second one without deinstalling the the other it seems to recognize them as the same, because there is a window saying like "do you want to update an existing app?". It seems as though it cannot differentiate them. I know they aren't the same app, because when installing them individually while the other one is uninstalled, it shows the two different apps.

      I thought it has something to do with the allias or the name of the certificate or even the passworts for the signed apks, but no, even if they are different in every of these catagories, the problem still remains.

      Does anyone have a clue why that is?

      Best regards

      Paul ColbyP Offline
      Paul ColbyP Offline
      Paul Colby
      wrote on last edited by
      #2

      Hi @Luffy97,

      Android recognises the unique application by the package attribute in the <manifest> element of the AndroidManifest.xml file. From the Android docs:

      The value of the package attribute in the APK's manifest file represents your app's universally unique application ID. It is formatted as a full Java-language-style package name for the Android app.

      It seems that Qt Creator-generated projects defaults it as follows:

      <manifest> - package - Sets the package name. The default value is org.qtproject.example.app_name.

      You'll want to change it to something like: com.example.Luffy97.app1 and com.example.Luffy97.app2.

      Cheers.

      L 1 Reply Last reply
      0
      • Paul ColbyP Paul Colby

        Hi @Luffy97,

        Android recognises the unique application by the package attribute in the <manifest> element of the AndroidManifest.xml file. From the Android docs:

        The value of the package attribute in the APK's manifest file represents your app's universally unique application ID. It is formatted as a full Java-language-style package name for the Android app.

        It seems that Qt Creator-generated projects defaults it as follows:

        <manifest> - package - Sets the package name. The default value is org.qtproject.example.app_name.

        You'll want to change it to something like: com.example.Luffy97.app1 and com.example.Luffy97.app2.

        Cheers.

        L Offline
        L Offline
        Luffy97
        wrote on last edited by
        #3

        @Paul-Colby

        Good morning. Thank you very much, this solved the problem. I never thought that the information about the uniqueness of an app would be stored in the Androidmanifest.xml file. But it actually makes sense that it would be found there.

        Have a nice day!

        Best regards

        1 Reply Last reply
        0
        • SGaistS SGaist has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved