How can I save userId and Password?
I am developing an application which requires to store email id and password, so that the user can directly redirect to his home page if the user already exists.
Now Next time when the user logins, he is directed to his home page directly. He should not again type in his userId and pasword.
I think your question would be how to save username and password and redirect user to next screen.
If this is it then I would suggest you to serialize your both the username and password after successful login.
When next time you come back to this screen deserialize the objects i.e read the stored values, and redirect user to next screen.
Here is the simple code for serialization:
Don't forget to deserialize when reading data. You can deserialize it similarly.