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. Multiple activities in one Android app using Qt Creator (androiddeployqt)
Qt 6.11 is out! See what's new in the release blog

Multiple activities in one Android app using Qt Creator (androiddeployqt)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 409 Views
  • 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.
  • B Offline
    B Offline
    barbicels
    wrote on last edited by barbicels
    #1

    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:20
    

    This seems like something the team behind androiddeployqt could address in a later release.

    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