Android SharedPreferences IOException Error

前端 未结 1 1052
天命终不由人
天命终不由人 2021-01-19 10:42

So I\'m trying to write some strings to SharedPreferences in my android app. I first declare SharedPreferences and its original properties in my Applicati

相关标签:
1条回答
  • 2021-01-19 11:12

    I don't know the exact reason for your problem, but SharedPreferences objects are intended to store small amounts of data anyway. If you need to store more data I would advise saving it to internal storage instead.

    I have never had any problems storing and retrieving data to internal storage, whereas I run into bugs and irritating restrictions with SharedPreferences (such as no putStringList). For all but the simplest data I would avoid SharedPreferences.

    0 讨论(0)
提交回复
热议问题