I want to be able to make my resources dynamic so that I can remove and add strings to it, for this I need to get the array programatically which I've done. However, I can't seem to figure out how to turn it into the correct array for this.
var array= resources.getStringArray(R.array.paintings)
I want to assign this array to a MUTABLE array.
However
var mutableArray: ArrayList<String> = ArrayList<String>()
mutableArray = array <------- Doesn't work
mutableArray.removeAt(2)
How do I make it mutable?