Array of strings in SharedPreferences

前端 未结 4 1370
感动是毒
感动是毒 2020-12-06 13:27

I wanna know whether is it possible to store array of string in the SharedPreferences. In my application i want , set of names to be stored

4条回答
  •  广开言路
    2020-12-06 13:52

    It's not possible to store them as an array, but you can concatenate them, and then split them when loading, using StringTokenizer. I can help with some code, if this will be helpful for you.

提交回复
热议问题