I’m creating GPS tracking service. So I need the app works without sleeping.
I added this to the AndroidManifest.xml:
But i’ve got a problem with example code:
Unresolved reference: startForeground. But
I don’t know what I must to do.