I need to save some array of strings on general settings and then get them. I tried this:
prefsEditor.putString(PLAYLISTS, playlists.toString()); where playlists are String[]
and get:
playlist= myPrefs.getString(PLAYLISTS, "playlists"); where the playlist is String , but it does not work.
How can i do this? Can anybody help me?
Thanks in advance.
android string arrays sharedpreferences
Gabrielle Nov 01 2018-11-11T00: 00Z
source share