Initiating activity for settings class
<p>In my code I'm calling a preferences activity from my main activity which prompts the user to enter username/password, as below..</p>

<hr>

<p>// Launch Preference activity</p>

<p>Intent k = new Intent(application.this, settings.class);</p>

<p>startActivity(k);</p>

<hr>

<p>This calls settings.xml, but I want to re-initiate the main activity once the username/password is set and the back button is pressed.</p>

<p>Any pointers?</p>
