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. Qt6 android service?
Qt 6.11 is out! See what's new in the release blog

Qt6 android service?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 935 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.
  • A Offline
    A Offline
    Alan Kay
    wrote on last edited by
    #1

    Best I could find are docs that tell one to add Java code for this, all sources instruct one to add QT += androidextras but when building that results in Unknown module(s) in QT: androidextras.
    All I want is to have Android keep the same process running in the background, like any normal OS would.

    jsulmJ 1 Reply Last reply
    0
    • A Alan Kay

      Best I could find are docs that tell one to add Java code for this, all sources instruct one to add QT += androidextras but when building that results in Unknown module(s) in QT: androidextras.
      All I want is to have Android keep the same process running in the background, like any normal OS would.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Alan-Kay said in Qt6 android service?:

      Unknown module(s) in QT: androidextras

      Are you also using Qt for Android?

      "All I want is to have Android keep the same process running in the background, like any normal OS would" - mobile platforms like iOS and Android are very restrictive if it comes to background processes, especially to not to drain battery too fast.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alan Kay
        wrote on last edited by
        #3

        @jsulm said in Qt6 android service?:

        Are you also using Qt for Android?

        Of course

        jsulmJ 1 Reply Last reply
        0
        • A Alan Kay

          @jsulm said in Qt6 android service?:

          Are you also using Qt for Android?

          Of course

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Alan-Kay According to https://wiki.qt.io/New_Features_in_Qt_6.0#Android many *extras modules do not exist in Qt6 anymore, see
          "Code from these Qt <platform> Extras modules will find new homes in more relevant modules over time, and any remaining APIs considered for inclusion in later 6.x releases:

          Qt Android Extras
          Qt Mac Extras
          Qt X11 Extras
          Qt Windows Extras"
          

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Alan Kay
            wrote on last edited by
            #5

            So there is outright no way to make an android foreground service with Qt6 yet?

            jsulmJ 1 Reply Last reply
            0
            • A Alan Kay

              So there is outright no way to make an android foreground service with Qt6 yet?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Alan-Kay Did you check https://doc.qt.io/qt-6/android-services.html ?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Alan-Kay Did you check https://doc.qt.io/qt-6/android-services.html ?

                A Offline
                A Offline
                Alan Kay
                wrote on last edited by
                #7

                @jsulm that's just a service that Android will kill some time after the activity is closed. Is there any way to make it a foreground one? The Qt doc even mentions it but doesn't give an instruction

                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