I have an application in which I have to implement a "Login" activity. I have these components:
- EditText username
- EditText password
- Button Login
- Button Cancel
I want that my application to remember the login details of the user once the user has logged in until the user would press the "log out" button. I'm not using preferences in my xml.
How do I get the getSharedPreferences(String name, int mode) to work in my application?