I'm trying to send a LinkedList from an Activity to an other one. In the first Activity I have:
LinkedList<Class> codaActivity;
/* Lots of code here... */
Intent intent = new Intent(this, codaActivity.remove());
intent.putExtra("codaRedditi", codaActivity); // this is putExtra(String, Serializable)
startActivity(intent);
In the second one, instead:
// The following throws a ClassCastException
codaRedditi=(LinkedList<Class>) (getIntent().getSerializableExtra("codaRedditi"));
When I try to run my app, the DVM throws a ClassCastException caused by that code (and talking about an ArrayList, that absolutely does't exists in the code! O.O)
What can be the mistake?