gmanish/noteit.android — Issue #52: Fix Leaks: View Flipper in ItemsListActvity
Author: gmanish
Created: 2012-01-14 05:49:46+00:00
State: open

See http://stackoverflow.com/questions/8701042/activity-has-leaked-intentreceiver-android-widget-viewflipper.

Basically when the ViewFlipper is detached from view, i.e. when there are no more items to load (after having loaded more items at least once) , when the activity is destroyed, we get this output in the LogCat. I am doing a flipper.clearAllViews() but that doesn't seem to help.

01-14 11:13:04.197: E/ActivityThread(610): android.app.IntentReceiverLeaked: Activity com.geekjamboree.noteit.ItemListActivity has leaked IntentReceiver android.widget.ViewFlipper$1@411b2ee0 that was originally registered here. Are you missing a call to unregisterReceiver()?