I have a ListView with items created by
val values = ArrayList().toMutableList() val adapter = ArrayAdapter(this, R.layout.listview_text_col
The proper way to save ArrayList of String to preferences is:
.putStringArrayList("test", values)
and get it
.getStringArrayList("test")