in my app I would like to remember some variables such as if the user has logged in once then they will be logged in when they nex开发者_Python百科t reopen the app or if they decide to disable some reminders, the app can check if that variable is false and will not show that reminder anymore. Ideally these variables should be global and used by every activity in the app. Where would I store these variables and how do I go about putting it in my code?
Thanks
SharedPreferences are the way to go.
精彩评论