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. How to create an Android foreground service for a Qt application?
Forum Updated to NodeBB v4.3 + New Features

How to create an Android foreground service for a Qt application?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.5k 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
    codestation
    wrote on last edited by
    #1

    Basically my app has no main GUI and it runs on the desktop as a background thead. I send simple messages to the user via popups using the system tray icon. While I can compile and run my app on Android, it shows an empty activity and the background thread gets killed once I leave the activity.

    Is there a way to run my background thread as a foreground activity on android?
    Is there a way to avoid the empty activity since I am not using qml or qwidgets? I managed to put a native android activity but the one created by Qt interferes with mine by hiding the action bar and blocking the back button.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dibet
      wrote on last edited by
      #2

      hola,tengo el mismo problema y no he encontrado como resolver este problema, pido una ayudita.
      un saludo
      dibet

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Ganton
        wrote on last edited by
        #3

        The information and the code that was attached to this "bug report" can be useful:
        http://bugreports.qt-project.org/browse/QTBUG-37221

        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