相关疑难解决方法(0)

从共享首选项中放入并获取String数组

我需要在共享首选项上保存一些字符串数组,然后才能获取它们.我试过这个:

prefsEditor.putString(PLAYLISTS, playlists.toString()); 播放列表的位置 String[]

得到:

playlist= myPrefs.getString(PLAYLISTS, "playlists");播放列表是一个String但它不起作用.

我怎样才能做到这一点 ?谁能帮我?

提前致谢.

arrays string android sharedpreferences

54
推荐指数
3
解决办法
5万
查看次数

标签 统计

android ×1

arrays ×1

sharedpreferences ×1

string ×1