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



  • 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.



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



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.