Open leijdekkers opened 7 years ago
+1 I am also facing this same warning and all i am doing is
SmartLocation.with(getContext()).geocoding().reverse(userLocation, new OnReverseGeocodingListener() {
@Override
public void onAddressResolved(Location location, List<Address> list) {
}
});
And When i end the app while gps was turned off then the warning i am getting in log is
Activity com.app.ui.navigation.NavDrawerActivity has leaked IntentReceiver io.nlopez.smartlocation.geocoding.providers.AndroidGeocodingProvider$2@f4ff014 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.app.ui.navigation.NavDrawerActivity has leaked IntentReceiver io.nlopez.smartlocation.geocoding.providers.AndroidGeocodingProvider$2@f4ff014 that was originally registered here. Are you missing a call to unregisterReceiver()?
@mrmans0n Can you please let me know how i can fix this ?
As a workaround i am able to fix it by calling
SmartLocation.with(getContext()).geocoding().stop();
explicitly on Activity onDestroy()
In #91 @mrmans0n explain that this is by design so we need to call
SmartLocation.with(getContext()).geocoding().stop();
explicitly on Activity or Fragment onDestroy()
Hi
I get this error when i even try to stop listening for location updates.
So i call this in my code assuming it would stop the smartlocation altogether.
What am i supposed to do to really stop listening for location updates?
/// Error Activity com.xxxxxx.AuditActivity has leaked IntentReceiver io.nlopez.smartlocation.geocoding.providers.AndroidGeocodingProvider$2@885af5 that was originally registered here. Are you missing a call to unregisterReceiver()? android.app.IntentReceiverLeaked: Activity com.ecsustainable.lsa.audit.AuditActivity has leaked IntentReceiver io.nlopez.smartlocation.geocoding.providers.AndroidGeocodingProvider$2@885af5 that was originally registered here. Are you missing a call to unregisterReceiver()?