maintaining username throughout my android app
<p>I am creating a simple login app. Which will display username after logged when  successful .Here, I am sending username from <code>Login Page</code> to <code>Second Page</code> through intent as follows</p>

<pre><code>String sendusername=results;
            Intent inte=new Intent(Login.this,SubmitActivity.class);
            inte.putExtra("displayusername", sendusername);
            startActivity(inte);
</code></pre>

<p>receiving that intent in the second page as follows:</p>

<pre><code>Intent inte=getIntent();
    final String Username=inte.getStringExtra("displayusername");
</code></pre>

<p>I am showing this value in a <code>TextView</code>.But, the problem here is once after moving to the forward pages when I went back to the second page, it is showing <code>null</code> value in place of username. Any one is there to give me a idea about this?</p>
