android - Does requestLocationUpdates() trigger an immediate update request? -


does locationmanager.requestlocationupdates() trigger immediate request location update, or wait initial interval before requesting first update?

if latter, appropriate trigger both requestsingleupdate() , requestlocationupdates() 1 after other make sure immediate request made?

as per doc, both take time location, can try getlastknownlocation(string), give immediately.

the requestlocationupdates() , requestsingleupdate() register current activity updated periodically named provider, or provider matching specified criteria, location , status updates.

it may take while receive first location update. if immediate location required, applications may use getlastknownlocation(string) method.

reference


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -