【发布时间】:2015-05-30 03:04:51
【问题描述】:
我写了一个简单的 locationManager 和 locationListener 使用:
GPS_distance = 30;
GPS_interval = 2000;
locationManager.requestLocationUpdates(GPS_provider, GPS_interval, GPS_distance, locationListener);
所以 onLocationChanged“应该”每 2 秒更新一次,或者在 30 米距离变化时更新。正在发生的是位置仅在 30 米内更新。如果我将距离设置为 0,则时间间隔有效!
在三星 Galaxy S4 上调试。
【问题讨论】: