I am working on a Location-App that should start tracking some statistics based on longitude and latitude when the user clicks Button . All this works very well, but when it comes to locking the screen or installing the application in the background, the service no longer works!
I read a lot about background services and broadcast receivers, but I donβt know how to implement the Google API Location receiver in the service and where to implement this class in MainActivity . Can someone tell me an example with a short code, how to implement such a service or a link where this is explained?
android background service location
madrid11 Jan 21 '16 at 8:25 2016-01-21 08:25
source share