I have an AppWidgetProvider that sets itself up for callbacks in its onEnabled method.
mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0f, this);
so theoretically in its onDisabled method it should unregister ...
I assumed this would be OK in the belief that there is one instance of this AppWidgetProvider created, which in turn handles all the individual widgets created at run time. I am finding that this is not the case. "this" in onEnabled does not equal "this" in onDisabled.
I have got round this issue by assigning this to a static in onEnabled and using that to unregister in onDisabled.
I guess I'm missing something really obvious, any thoughts?