Just created a simple Android tutorial that shows you how to use an Android login and SharedPreferences. It has the following examples:
- Basic Login (test/test)
- Using SharedPreference to save a preference so once the user logs in, they don’t have to login again when launching the app.
- An example of a Menu item that has the “Log Out” item and the code that show the user logs out from the application.
You can download the source code from here and play with it. Let me know if you have ANY questions.