Returning an array from an activity
- by Boardy
I am currently working on an android project and I want to be able to startActivityForResult so that I can return an array of.
The array is an ArrayList<Spanned> lets say its called myArray.
From what I've read I can't return an array directly from the activty using the set result so I was thinking that once the array has added all the data to the array, I can then call the toString function on it, i.e. myArray.toString().
If I do this, I have no idea how I can then convert this back into the original ArrayList<Spanned>.
Thanks for any help you can provide.