Questions tagged [location-updates]
22 questions
0
votes
1 answer
why is IntentService's onStartCommand method called every time the service handles a new intent
i have a service that receives location updates every 1-3 seconds or so. the service is started from the main activity using a pending intent:
mFusedLocationClientFast.requestLocationUpdates(mLocationRequest, getPendingIntent());
where…

Russell Butler
- 326
- 4
- 15
0
votes
1 answer
onLocationChanged not working while phone screen is locked
I've created an app which tracks the user and draws polyline. In some cellphones when the phone is locked, the onlocationchanged listener stops working and doesn't take the locations where the user passed, so the polylines are not drawn.
can someone…

mehdi amirsardari
- 201
- 5
- 13
0
votes
2 answers
App Crashes While Requesting Location Updates With The Help Of Fused Location
I was requesting the location updates with the help of
LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient,
locationRequest, locationListener);
But As I tried to mention this on a swtich onClickListener , it crashed. However…
user9634535
0
votes
2 answers
is it possible to get location updates in android app after force stopping(killing) the app
Is it possible to get location updates in android app after force stopping the app. In IOS it is possible to get the location update if we force stop the app, in similar manner is there any service which can provide location updates to killed app in…

mithil1501
- 506
- 9
- 20
0
votes
1 answer
Background service for continuous location update using fusedlocationAPI
following service is created to continuously update user location. User's location has to be tracked even app is in background, device is idle or screen is off or application is removed/killed from recent list.
But somehow this code doesn't work.…

jil123
- 99
- 1
- 12
0
votes
1 answer
How long does "location updates" process can run in background?
Assumes that I registered "location updates" service. If the location changes significantly, the callback function gets invoked.
Question: How long is my function allowed to run in the background? Let's say the function does so much work and need 10…

DàChún
- 4,751
- 1
- 36
- 39