Will finish in an activity kill all the objects in it
<p>I am working in an android application an I am having some memory issues.I have a lot of private and public static variables declared in an activity. </p>

<p>I want to know whether when an activity id finished, these private and public object cleared(Memory) or should we make it <code>null</code> manually by assigning it to null in on <code>onDestroy()</code>. Is this correct method or please advice an alternative. Also I call the garbage collector manually in every <code>onDestroy()</code>. Is it correct way to call the System.gc manually?</p>

<p>Please help me.</p>
