requestLocationUpdates第二个参数以km或m为单位

问题描述 投票:-2回答:1

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,time,distance,locationListener);这里 时间是几毫秒还是秒? 距离是公里还是米?

java android android-location android-gps
1个回答
3
投票

android API有很好的文档,你可以找到你的答案here

enter image description here

这应该回答你的问题,但我强烈建议你阅读android开发者文档以获得有关它的任何进一步问题,你会找到你需要的一切。

© www.soinside.com 2019 - 2024. All rights reserved.