Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Android: Run background service with suspended app
oria66 last edited by
Hi everyone. I have a simple android that reads from the phone GPS and sends the coordinates to my server. I use the approach recommended by Qt Android docs. You can view the implementation here:
Everything works perfectly and suddenly the app stops sending data when any of these situations happen:
- The user decides to touch the home button and go out.
- The system screen goes to black.
I want that the apps keep sending data unless the user closes the service or the app, or shut down the phone.
What's your recommendation?
NullByte last edited by
did you find a solution?