I have a service that receives seats through registration at LocationManager.requestLocationUpdates . But some phones had some problems.
When the battery runs down, the network location provider stops sending location corrections (this issue is addressed in this SO issue ). This is not the only problem with my application, but other applications just stop getting places. Even when the phone is recharging, the problem persists until it is completely rebooted.
However, I found out (and someone also mentioned this in the SO question above) that Google Maps is still continuing to receive location updates - when I open the Google Maps app, it shows the correct location and updates.
So, I was thinking of a workaround for using locations from the Google Maps API. I have absolutely no experience with the Maps API, but it seems like he needs a GUI application (Activity) to be used. Or I'm wrong? Is it possible to use the Google Maps API to get seats even within the Service?
android google-maps geolocation
NumberFour Jul 18 '13 at 22:16 2013-07-18 22:16
source share