开发者

How do I create settings in android app

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜