【发布时间】:2018-02-06 22:41:18
【问题描述】:
我需要在共享首选项中保存一些字符串数组,然后再获取它们。 我试过这个:
prefsEditor.putString(PLAYLISTS, playlists.toString()); 其中播放列表是String[]
得到:
playlist= myPrefs.getString(PLAYLISTS, "playlists");,其中播放列表是 String,但它不起作用。
我该怎么做?谁能帮帮我?
提前致谢。
【问题讨论】:
标签: android arrays string sharedpreferences