Returning an array from an activity

Posted by Boardy on Stack Overflow See other posts from Stack Overflow or by Boardy
Published on 2012-09-30T21:35:54Z Indexed on 2012/09/30 21:37 UTC
Read the original article Hit count: 144

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.

© Stack Overflow or respective owner

Related posts about android

Related posts about arraylist