Hello, at the moment we are creating and Android application that uses GPS data to position the user in Google maps. But since we do not need refresh of GPS data every second or millisecond we changed the interval to 1 min. In the tutorial of Google it says that it might be off a few seconds because of refreshing but, our code doesn't seems to respond to new interval setting at all. The reason why we think it's not working is because we run in it on a phone (Samsung Galaxy S2) we see in the logging that it still gets new data every second or less.
Please see the link, screen shots (with logging GPS interval) and the code that is provided for more detail. http://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, android.location.LocationListener) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- LocationProvider gpsProvider = locationManager.getProvider(LocationManager.GPS_PROVIDER); if (gpsProvider == null) { this.onProviderDisabled(LocationManager.GPS_PROVIDER); locationManager.removeUpdates(this); return; } String providerName = gpsProvider.getName(); locationManager.requestLocationUpdates(providerName, 60000 /* minTime */, 0 /* minDist */, this); ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Does anyone know what we are doing wrong or how to change the interval of the refreshing of GPS data in such a way that we get a refresh very 1 min? Thanks for all your help. <https://lh5.googleusercontent.com/-9uuPHCvNJ30/UCZRCqpYdhI/AAAAAAAAAEc/4oYHGNGNMDs/s1600/code.PNG> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

