Android Google Play融合了位置和设置间隔
我正试图通过Google Play Fused Location获取设备的位置,一切正常,但似乎不尊重请求的间隔:Android Google Play融合了位置和设置间隔,android,location,google-play-services,Android,Location,Google Play Services,我正试图通过Google Play Fused Location获取设备的位置,一切正常,但似乎不尊重请求的间隔: LocationClient myLocationClient; myLocationClient = new LocationClient(context, this, this); myLocationClient.connect(); ... LocationRequest myLocationRequest = LocationRequest.create(); myL
LocationClient myLocationClient;
myLocationClient = new LocationClient(context, this, this);
myLocationClient.connect();
...
LocationRequest myLocationRequest = LocationRequest.create();
myLocationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY);
myLocationRequest.setInterval(10000);
myLocationRequest.setFastestInterval(10000);
myLocationClient.requestLocationUpdates(myLocationRequest, this);
无论我在setInterval和setFastTestInterval上写入10000、100000或一百万,每次位置更改时都会触发请求
为什么?
谢谢。需要更多代码来理解上下文问题吗