If I add this
as a LocationListener twice as follows
manager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,3,this);
manager.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,3,this);
, would it be enough to just remove this
once as follows
manager.removeUpdates(this);
Yes, removing manager.removeUpdates(this);
is enough. As the documentation says:
Removes any current registration for location updates of the current activity with the given LocationListener. Following this call, updates will no longer occur for this listener.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With