How to save user state in Android?
<p>I have an application for my Nokia mobile.  When I install that software and try to use it for the first time, it asks me for a password and to confirm that password.  Then after writing it and clicking on OK button, it allows me to use the application.</p>

<p>Now  if I close that software and open again, it asks me to write ONLY the password.  After entering the password correctly, it allows me to use its application again.  Also if I totally remove that application from the phone and install it again, it asks me to enter the password and confirm the password. </p>

<p>So tell me how do I write an application like this in Android?</p>
