save variables after quitting application?

前端 未结 3 1981
说谎
说谎 2020-12-08 15:34

I want some variables to be saved, when I shut down my app and to load them after opening the app (for statistics in a game)

How can I do this?

EDIT: Here my

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 15:59

    Use SharedPreference, this is a better option.

    To see this tutorial.

提交回复
热议问题