Saving data upon closing app and retrieving that data

后端 未结 5 1898
没有蜡笔的小新
没有蜡笔的小新 2021-01-04 01:07

I know, there are plenty of questions in regards to saving/retrieving data on here. I was doing find looking things up on my own and really thought I could manage to find m

5条回答
  •  难免孤独
    2021-01-04 01:31

    Looking at the purpose you want to fulfill, SharedPreferences is all you want.

    The documentation states:

    "SharePreferences provides a general framework that allows you to save and retrieve persistent key-value pairs of primitive data types. You can use SharedPreferences to save any primitive data: booleans, floats, ints, longs, and strings. This data will persist across user sessions (even if your application is killed)."

提交回复
热议问题