I have made an android app which working fine. I implemented the Login functionality in it. Can anyone guide me how to store the login credentials of the user so that the user does not have to login everytime he/she starts the app and when user logout then clear the stored login information.
Actually i want that user does not have to enter login information everytime when he/she starts the app.How can i do this?
Store value use sharepreference. i am pasting code here..use it.
Create Share Preference:
Get Value from Share preference:
When user logout then you can set null value into sharedpreference.