I am just sharing my knowledge for android beginner apps developer.
Login and Logout useing Sharedprefrences.
Shared Preference is lightweight data storage mechanism for particular activity or application.
and it will be store data for entire application and you should use to any why in apps...
Read more....