I'm working on having a “Keep me on Logged in” state on my app. How should i do it?

前端 未结 2 1048
时光取名叫无心
时光取名叫无心 2020-12-04 04:22

Here\'s my xml:



        
相关标签:
2条回答
  • 2020-12-04 04:41

    You can do it by using SharedPreference, Static variables or by Application class which will helps you in keeping the state of the User

    0 讨论(0)
  • 2020-12-04 04:54

    you should save the login credentials in sharedPreferences or Sqlite and on login activity check if you find any saved data then login with the saved data else ask user for credentials..

    0 讨论(0)
提交回复
热议问题