Two apps are seemingly recognized by andriod phone as the same
-
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
-
Hi @Luffy97,
Android recognises the unique application by the
package
attribute in the<manifest>
element of theAndroidManifest.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 isorg.qtproject.example.app_name
.You'll want to change it to something like:
com.example.Luffy97.app1
andcom.example.Luffy97.app2
.Cheers.
-
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
-
S SGaist has marked this topic as solved on