简体   繁体   中英

Is there anyway to requestLocationUpdates fast using GPS_PROVIDER in android

I am trying to get the location updates but it takes anything between 30 seconds - 5 mins. So i decided to throw in coarse location which is faster and run the GPS_PROVIDER in background. But no luck. As of now after the coarse location is executed, the control never goes to onLocationChanged in GPS_PROVIDER listener. Is there some way to get the updates faster, so the user does not have to wai long?

您可以使用NETWORK_PROVIDER来快速定位

and there is no way to to update fast as it depends on hardware

NETWORK_PROVIDER gives fast as compared to that , but you there must be active network in there .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM