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: Run background service with suspended app
Forum Updated to NodeBB v4.3 + New Features

Android: Run background service with suspended app

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidgps
2 Posts 2 Posters 585 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.
  • oria66O Offline
    oria66O Offline
    oria66
    wrote on last edited by
    #1

    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:

    https://github.com/oria66/test-qml-android-service

    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?

    The truth is out there

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      did you find a solution?

      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