我尝试在onLocationChanged函数的更新中获得正确的速度,这是我的类:
public class LocationService extends Service implements LocationListener {
Run Code Online (Sandbox Code Playgroud)
将minTime放在6000上并没有帮助,它会不断更新,我做错了什么?
public void requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener, Looper looper) {
Run Code Online (Sandbox Code Playgroud)
问候