android - Passing ArrayList with objects to new Activity? -


i'm trying pass arraylist first activity next one. basically, first activity parses xml file , creates arraylist objects inside. want send arraylist second activity , show of object data in listview.

i thought of doing intent, looks primitive datatypes passed through intents. right?

if so, better solution pass data? android must provide able kind of thing.

any help/code examples appreciated..

thanks

edit:

i solved first creating , calling intent, , parsing xml in activity called. way didn't need pass objects anymore. interested, can read how pass data through activities, here.

complex types may passed means of parcelable. example in question:

help passing arraylist , parcelable activity


Comments