You have to unregister. Otherwise you end up with multiple listeners for the same provider.
On Mar 12, 4:05 pm, "Danny S." <[email protected]> wrote: > Hi, > > I have to register my locationListener for location updates using the > LocationManager. Now the user have the change to set values in the > preferences that should set for gestitration. > > mLocationManager.requestLocationUpdates(GPS_PROVIDER, > PreferenceHelper.getLocationFixInterval(mPrefs), > PreferenceHelper.getLocationFixDistance(mPrefs), locationListener); > mLocationManager.requestLocationUpdates(NETWORK_PROVIDER, > PreferenceHelper.getLocationFixInterval(mPrefs), > PreferenceHelper.getLocationFixDistance(mPrefs), locationListener); > > If the preferences for the fix distance or fix interval changes, I > need to call requestLocationUpdates again with the new values. Do I > have to unregister from the listener first or is it overridden by the > new request call? > > Thanks a lot! > -Danny -- 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

