You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. start the app
2. rotate the between landscape and portrait
3. check logcat
Expected:
- no logcat messages about leaks
Actual:
- leak indicated in logcat:
E/ActivityThread( 8110): Activity
com.radioactiveyak.location_best_practices.UI.PlaceActivity has leaked
IntentReceiver
com.radioactiveyak.location_best_practices.utils.GingerbreadLastLocationFinder$1
@419b1f00 that was originally registered here. Are you missing a call to
unregisterReceiver()?
App built from source 2012-0 with Android 3.2 API, running on 4.0.4 (Samsung
Galaxy Note).
Original issue reported on code.google.com by [email protected] on 3 Aug 2012 at 6:51
The text was updated successfully, but these errors were encountered:
It is because "LastLocationFinder" uses Activity's context and
"singleUpdateReceiver" may outlive the activity, you can use "this.context =
context.getApplicationContext();" in the constructor, but still
"locationListener" holds the reference to the old activity, requesting single
update in LastLocationFinder is broken, you may instead try to send broadcast
to passive receiver
Original issue reported on code.google.com by
[email protected]
on 3 Aug 2012 at 6:51The text was updated successfully, but these errors were encountered: