Activity has leaked IntentReceiver android.widget.ViewFlipper
<p>I'm adding a <code>ViewFlipper</code> inflated from a layout resource into a <code>ListView</code> as a <code>Footer</code>. Here's my flipper layout (Details omitted for brevity):</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;ViewFlipper ...&gt;
    &lt;Button
        /&gt;
    &lt;LinearLayout 
        ... &gt;
        &lt;ProgressBar 
           ... /&gt;
        &lt;TextView
            ... /&gt;
    &lt;/LinearLayout&gt;
&lt;/ViewFlipper&gt;
</code></pre>

<p>I add it to my ListView using :</p>

<pre><code>mListView.addFooterView(mLoadMoreFlipper);
</code></pre>

<p>When my activity is destroyed I see the following message, followed by a call stack, in LogCat:</p>

<pre><code> Activity com.gk.ItemListActivity has leaked IntentReceiver android.widget.ViewFlipper$1@44c84ab0 
 that was originally registered here. Are you missing a call to unregisterReceiver()?
</code></pre>

<p>I did some digging around and found out the message is related to not unregistering receivers, except I haven't registered any. Oddly this message only appears if the footer <code>ViewFlipper</code> has been removed from the <code>ListView</code> before destruction (by using the back button). I detach the footer when I no longer need it by using:</p>

<pre><code>mListView.removeFooterView(mLoadMoreFlipper);
</code></pre>

<p>I have tried using a <code>WeakReference</code> to the <code>ViewFlipper</code> but that doesn't help. I also tried setting the <code>mLoadMoreFlipper</code> reference to <code>null</code> but that doesn't help either. </p>

<p>Has anyone encountered this problem before? This seems to be related to my activity holding a reference to the <code>ViewFlipper</code> after it's been detached from the <code>ListView</code> but I do not know how to explicitly destroy the <code>ViewFlipper</code>.</p>
