Hi all,
I have an ArrayList<MyList> aList in an activity. I would like to send
this data to another activty. Such that,
ArrayList<MyList> aList;
Intent intent = new Intent();
intent.setClass(mainactivity.this, newActivity.class);
intent.putExtra("MyList", aList );
startActivity(intent);
Will this work out..??
On the receiving activity,
Intent i = getIntent();
newList = (ArrayList<MyList>) i.getSerializableExtra("MyList");
But this gets me no where.... ERROR..!!!
Please help me..how to approach this problem...
My intention is to share this List between activities...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---