Continuing integer counter from sharedpreferences

后端 未结 3 1199
南笙
南笙 2020-12-22 09:21

Basically I am making a tally counter app which uses int++ to increase the number. I have managed to save whatever number the user has counted up t

3条回答
  •  無奈伤痛
    2020-12-22 10:01

    You need to see the description of getSharedPreferences. The second argument is Mode. I think you'd better use 0.

提交回复
热议问题