ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android is what it typically is (project directory/android-specific files directory) This way it never collides with other projects.

I'm not sure where you're going with that one... Typically it is built into a build directory. build-{project}-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_2-Release/android-build/build/outputs/apk/ So I never end up putting the apks on top of each other.
 
 
 
 
Sent: Monday, February 13, 2017 at 2:40 PM
From: "Serge K via Interest" <[email protected]>
To: interest <[email protected]>
Subject: Re: [Interest] How set default Android APK name?
First the small error was in all my projects - they used same path in ANDROID_PACKAGE_SOURCE_DIR. Therefore all projects used same AndroidManifest.xml including same package name and icons. Therefore each one installed application tried replace another one installed before.

Second the resulting file name is important exactly - it will be needed change it manually each time before distribution. May be you do not know but operating systems cannot save different files with same name in one directory...
 
Понедельник, 13 февраля 2017, 21:51 +03:00 от "Jason H" <[email protected]>:
 
At ease, Serge,
 
The thing that matters is the value in the manifest, not the filename. I suggest starting here: https://www.kdab.com/qt-on-android-episode-2/
 
There is nothing wrong with how the apks are named (other than a signed build is always release-signed) but that is only cosmetic. ( https://bugreports.qt.io/browse/QTBUG-58799 )
Sent: Monday, February 13, 2017 at 1:09 PM
From: "Serge K via Interest" <[email protected]>
To: interest <[email protected]>
Subject: [Interest] How set default Android APK name?
I develop several apps for Android using Qt. Each time it creates archive with name QtApp-debug.apk or QtApp-release-signed.apk. If only I would create and debug single app - then I wouldn't worry. But I develop several apps at one time and they must run simultaneously on Android device. Each of them receives this name after build - to debug or just run them simultaneously I had MANUALLY RENAME EACH ONE! This is stupid! I wanted add project build step in QtCreator - rename this file to proper application name. But I do not see how then tell QtCreator which one file it should install to device. And how then tune debugging mode for this.

The question is - how can I set up ONCE final APK file name for Android application? I would prefer if QtCreator create $${TARGET}-debug.apk and $${TARGET}-release-signed.apk.

If there is no such a way - then I'll treat this is a SERIOUS BUG.
--
Serge K

_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to