views:

170

answers:

1

I'm starting an activity when a button is pressed, and normally (in other apps) haven't had an issue. But when I press the button in this app, I get an "unable to marshal value" error.

Exact(ish) error from LogCat:

03-22 02:49:02.883: WARN/System.err(252): java.lang.RuntimeException: Parcel: unable to marshal value {CLASSNAME}@44dcf1b8

I feel that this might be related to the extra that I'm passing to the intent. I'm passing an ArrayList as a serializable to this new intent. My concern is that the data structure that the ArrayList contains isn't being serialized (as it's a personal data structure).

Is the array list content data structure causing this? Something else that I'm missing?

A: 

Try passing a Parcelable instead of a Serializable object, that will solve the problem.

LucaB
thanks, I'll check it out tonight!
Adam