I have a class that contains data i want to pass it between intents, this class have arraylist that contains another class objects. this is my class
public
This may be your problem:
Classes implementing the Parcelable interface must also have a static field called
CREATOR
, which is an object implementing theParcelable.Creator
interface.
Alternatively, I'd try to have Item
implement Parcelable
, as well.
The fail-safe alternative is to write your data structure into a JSON string, which also allows you to pass the data to other applications that don't have access to your ParsedData
class.