Hi, I am using this code to request updates. LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, delay * 60 * 1000, 25000, this);
delay is a user defined value, but we can assume 1 for this problem. When the phone is static, I recieve updates at a regular 1minute pace. But when the phone is moving at modest speeds (40-90km/h) I recieve and endless flood of location updates, about one per second. I would like to recieve one update every delay (1minute), no matter how far the phone moved. Is there a better way to do this? I could unregister my listener after getting a fix, but I currently use the same event to send the data if more than delay has passed since last submit. (Since a simple sleep is pretty complicated in android, since most sleep systems only count wake time) This is for a GPS tracker, and I am aware that it will use some battery, but the user is very aware of this happening, and can set the delay in options, to ie. 60minutes for 1 hour updates. -- 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

