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. Run application in background on Android
Qt 6.11 is out! See what's new in the release blog

Run application in background on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 1.6k 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.
  • C Offline
    C Offline
    cristeab
    wrote on last edited by
    #1

    Hi

    I have developed a softphone with Qt 5.9.2 and PJSIP library on Android and I need to add the ability to receive calls while the application is in background. I have read that the Qt main thread does not run when the application is in background. So my question is how I can still receive calls when the application is put in background so that the application is automatically put in foreground when a call is received.

    thanks
    Bogdan

    K 1 Reply Last reply
    0
    • C cristeab

      Hi

      I have developed a softphone with Qt 5.9.2 and PJSIP library on Android and I need to add the ability to receive calls while the application is in background. I have read that the Qt main thread does not run when the application is in background. So my question is how I can still receive calls when the application is put in background so that the application is automatically put in foreground when a call is received.

      thanks
      Bogdan

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @cristeab

      Typically the responses to Qt with android are a bit slow.

      Therefore,it might be good to raise or check for answer for the question also on https://groups.google.com/forum/#!forum/android-qt

      If you find an answer, please post it or a link also here. This will help others.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mvuori
        wrote on last edited by
        #3

        You need to create a service. Search and you'll find many discussions about.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cristeab
          wrote on last edited by
          #4

          @mvuori I have arrived at the same conclusion. The problem is that from the service I need to start the application, not to just show a notification. The examples I have found until now show notifications only

          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