I am trying to send a LinkedList from Activity to another. In the first Office, I:
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);
Instead of the second:
// The following throws a ClassCastException codaRedditi=(LinkedList<Class>) (getIntent().getSerializableExtra("codaRedditi"));
When I try to run my application, DVM throws a ClassCastException caused by this code (and talks about an ArrayList that absolutely does not exist in the code! OO)
What could be a mistake?
source share