android - How to put a List in intent -


i have list in 1 of activities , need pass next activity.

private list<item> selecteddata;   

i tried putting in intent :

intent.putextra("selecteddata", selecteddata);   

but not working. can done?

you have instantiate list concrete type first. list interface.

if implement parcelable interface in object can use putparcelablearraylistextra() method add intent.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -