[android-developers] Question about registering for location updates
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home