setImageResource running out of memory
<p>I have a repeated Runnable task that performs a setImageResource() every 10 seconds (the resource is a jpeg file). This is the only significant thing happening in the activity.</p>

<p>However, after a few iterations (2-4), the app crashes with the following error:</p>

<ul>
<li>VM won't let us allocate X bytes</li>
<li>Shutting down VM</li>
</ul>

<p>I did not expect this. Why isn't the GC cleaning up previous jpeg bitmaps? How do I avoid crashing the VM?</p>

<p>Thanks.</p>
