N
N
Nikolarsen2019-02-14 12:49:21
Java
Nikolarsen, 2019-02-14 12:49:21

How to make GPS work in the background?

The application records the track of the distance traveled. Everything works fine until the application is minimized or the phone is locked. The track stops recording. After re-opening, the track continues to be recorded but cuts off the path from the closing point to the opening point of the application.
How to make gps continue to work in the background?
Specifically, what to register in the service?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2019-02-14
@iLLuzor

Read about foreground service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question