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. Android Manifest Packagename as variable in .pro ?

Android Manifest Packagename as variable in .pro ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 1.4k 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.
  • ekkescornerE Offline
    ekkescornerE Offline
    ekkescorner
    Qt Champions 2016
    wrote on last edited by
    #1

    would it be possible inside Android Manifest to use a variable as package name ?
    this variable should be set in .pro and also be available from external tools.

    reason: Android for Work apps need to be started using a specific user

    adb shell am start --user 10 -n my.package.name/org.qtproject.qt5.android.bindings.QtActivity
    

    I want to run this command from external tools with android package name as parameter,
    so I got the idea to define the package in .pro and to use from tools and Android Manifest

    thx for tips - never did such kind of stuff before

    BTW: will blog in detail HowTo debug and run apps on devices managed by AndroidForWork

    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
    5.15 --> 6.9 https://t1p.de/ekkeChecklist
    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

    ekkescornerE 1 Reply Last reply
    0
    • S Offline
      S Offline
      Schluchti
      wrote on last edited by
      #2

      Don't know if that's what you are looking for, but maybe it helps you: https://gympulsr.com/blog/qt/2017/03/02/multiple-versions-with-qt.html

      Want to read more about Qt?

      https://gympulsr.com/blog/qt/

      Latest Article: https://gympulsr.com/blog/qt/2017/06/14/ios-background-music-qt.html

      ekkescornerE 2 Replies Last reply
      0
      • S Schluchti

        Don't know if that's what you are looking for, but maybe it helps you: https://gympulsr.com/blog/qt/2017/03/02/multiple-versions-with-qt.html

        ekkescornerE Offline
        ekkescornerE Offline
        ekkescorner
        Qt Champions 2016
        wrote on last edited by
        #3

        @Schluchti thx. have to think about.

        ekke ... Qt Champion 2016 | 2024 ... mobile business apps
        5.15 --> 6.9 https://t1p.de/ekkeChecklist
        QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

        1 Reply Last reply
        0
        • S Schluchti

          Don't know if that's what you are looking for, but maybe it helps you: https://gympulsr.com/blog/qt/2017/03/02/multiple-versions-with-qt.html

          ekkescornerE Offline
          ekkescornerE Offline
          ekkescorner
          Qt Champions 2016
          wrote on last edited by
          #4

          @Schluchti have created a bugreports and referenced your blog post
          https://bugreports.qt.io/browse/QTCREATORBUG-17863

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.9 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          1
          • ekkescornerE ekkescorner

            would it be possible inside Android Manifest to use a variable as package name ?
            this variable should be set in .pro and also be available from external tools.

            reason: Android for Work apps need to be started using a specific user

            adb shell am start --user 10 -n my.package.name/org.qtproject.qt5.android.bindings.QtActivity
            

            I want to run this command from external tools with android package name as parameter,
            so I got the idea to define the package in .pro and to use from tools and Android Manifest

            thx for tips - never did such kind of stuff before

            BTW: will blog in detail HowTo debug and run apps on devices managed by AndroidForWork

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            @ekkescorner blogged about Qt and managed Android Devices: https://appbus.wordpress.com/2017/03/15/overview-managed-android-devices/

            also opened Bugreport to get the User ID in .pro: https://bugreports.qt.io/browse/QTCREATORBUG-17862

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.9 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            1 Reply Last reply
            1

            • Login

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