How to save app settings?

前端 未结 6 1758
暖寄归人
暖寄归人 2020-12-07 03:01

How can I save the the settings of my app? Right now, for example, I have a togglebutton to turn on/off. But if I restart my phone, the toggle button is turned back on. Its

6条回答
  •  攒了一身酷
    2020-12-07 03:13

    You should check out SharedPreferences. It's Android's way of persisting simple values. Or you could create a full database.

提交回复
热议问题