clear resources while call second activity
<p>I have develop one application in which <code>3 activity.</code><br>
in <code>first activity</code> there are so <code>much images</code>.<br>
in second, <code>images + sound + background sound</code><br>
in third activity <code>background sound + replay button</code>  </p>

<p><strong>Problem :</strong> <em><strong>now when i am play app in device first time work fine but when i click it replay at second activity give error. i think it is memory problem
 so i have try</em></strong> </p>

<pre><code>intent2.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
</code></pre>

<p>but still not get solve.</p>

<p><strong>I need code which clear previous data (images and sound) when i am calling second.</strong></p>
