locationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER,30000,100, new GeoUpdateHandler()
);
The map refreshes after a regular interval of 30 secs.
Suppose I’m at the same position for more than 2 minutes then the map will be refreshed more than 4 times; I don’t want it to happen.
Can anyone suggest me that i provide time as null?
The SDK documentation on
LocationManager.requestLocationUpdates()has your answer on how to utilize theminTimeandminDistanceparameters to adjust the update frequency for your location:LocationManager SDK Documentation
Basically, you are getting 30 second updates because you have set minTime to 30000. You may consider setting this value to 0 and increasing the value of minDistance larger than 100 to get location updates that are more akin to when the user physically moves a significant distance.
Hope that Helps.