How can I switch adapter for a Gallery
<p>Is it possible for me to dynamically switch the adapter of a Gallery?</p>

<p>In the <code>onCreate()</code> of my activity, I did this:</p>

<pre><code>myGallery.setAdapter(adapter1);
</code></pre>

<p>And then later on in my code, I did</p>

<pre><code>myGallery.setAdapter(anotherAdapter1);
</code></pre>

<p>I tried, that but in the emulator, the myGallery never gets update when I do 'setAdapter' again.
How can I force myGallery free up all the items when it was using adapter1 and then makes it repopulate items for anotherAdapter1?</p>

<p>Thank you.</p>
