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 service address space

Android service address space

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 388 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
    Andreas E.
    wrote on last edited by
    #1

    Hi,
    I am trying to integrate a background service for an Android app. I would like to have the activity run in the same address space and thread as the service. The Qt documentation states that services must run in different processes than the activity. I have a few questions on this:

    • What is the reason for this limitation?
    • Can a service run in the same process as the Qt activity if it is implemented entirely in Java and not using Qt functions?
    • If so, is it possible to force the service and activity to run in the same main thread?

    Thanks a lot.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi,

      AFAIK, that's a platform specific setup. You should check in Android's documentation for the constraints associated with applications and services.

      See this part of the Android documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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