Open GoogleCodeExporter opened 9 years ago
Original comment by wish7code
on 18 Feb 2015 at 8:55
Pretty interesting stuff in the link you posted.
I wasn't even aware of the fact, that services could get killed. The
setForeground API nevertheless seems to be deprecated for some time (
http://stackoverflow.com/questions/5647815/can-anyone-explain-the-service-setfor
eground-method)
I went for the startForeground method mentioned in above post instead.
r9702d43b03b4 starts the Wireless Logging Service as a foreground service.
Let's see whether this helps. There's still a chance that we have to start all
services foreground (i.e. gps positioning, gpx loggging services), but I hope
we can avoid that as each service started foreground would need a separate UI
notification.
Another option would be to start wireless logging service as foreground service
and restart other services as needed.
Original comment by wish7code
on 18 Feb 2015 at 9:39
Kept the client successfully running and tracking for ~5 hours in background
(although no heavy CPU/RAM load during that time)
Original comment by wish7code
on 19 Feb 2015 at 9:19
Original issue reported on code.google.com by
mich...@vonglasow.com
on 18 Feb 2015 at 5:55