how to avoid duplication screen in android
<p>I have did a application in android by calling <code>sub activities(B,C,D,E)</code> from <code>main activity(A)</code>,again calling that <code>main Activity(A)</code> from other <code>sub Activities(B,C,D,E)</code>by using </p>

<pre><code>Intent in = new Intent();
in.setClass(getApplicationContext(), maindashbord.class);
in.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(in);
</code></pre>

<p>when i move back from <code>main Activity</code> to <code>login</code> page by clicking <code>back</code> button ,the main Activity displays again and again the times of I have called the subactivity. I have made all other activities in manifest.xml <code>Android:noHistory="true"</code></p>

<p>but I need some static value in mainActivity for next login propose...</p>

<p>how can I replace the duplicate screen display?</p>

<p>thanks in advance..</p>
