开发者

Is there anyway to requestLocationUpdates fast using GPS_PROVIDER in android

开发者 https://www.devze.com 2023-02-04 04:48 出处:网络
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.

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?


You can use NETWORK_PROVIDER to get fast location


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 .

0

精彩评论

暂无评论...
验证码 换一张
取 消