Qt 6.11 is out! See what's new in the release
blog
Multiple activities in one Android app using Qt Creator (androiddeployqt)
-
Related post: https://forum.qt.io/post/278637
I would like to expose two activities from one APK built using Qt Creator (androiddeployqt). The poster above was able to do it using cmake, but today's Qt Creator GUI and androiddeployqt tool don't seem to support this. (Background: My app has two GUI modes, one "pro" and one simplified, with most underlying library code and resources in common, thus, one APK.)
Specifically:
- AndroidManifest.xml smart editor offers only one text field for activity name and one "Run" popup field for selecting the entry-point library.
- androiddeployqt chokes on the duplicate <activity> tag, though it has a different label attribute:
Element activity#org.qtproject.qt5.android.bindings.QtActivity at AndroidManifest.xml:83:9-140:20 duplicated with element declared at AndroidManifest.xml:25:9-82:20This seems like something the team behind androiddeployqt could address in a later release.