How to save user log-in state in Android?

Ahmed picture Ahmed · Jul 29, 2011 · Viewed 15.4k times · Source

I'm trying to build an app with a login module. I want to save the user login state so that the end-user will not have to retype his/her credentials except if they have explicitly logged out.

I understand that SharedPreferences can be of some use but I would appreciate it if some one can provide me some of their expert insight in this matter.

Answer

Asish AP picture Asish AP · Jul 29, 2011

use the below link.There is 3 way to store you login details . one is using shared preference and 2nd one way is store in a file and the third one is using sqlite. This will give you the ideas for storing login details.

save user data