I set my application to get location notification every 5 seconds.
mLocationRequest = LocationRequest.create();
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
mLocationRequest.setInterval(5000);
mLocationRequest.setFastestInterval(5000/6);
myLocationReq.requestLocationUpdates(mLocationRequest
so - every 5 seconds, onLocationChanged is being called. This is working fine.
Now I want to change the interval to be 1 second, without calling
requestLocationUpdates
How can this be done?