ClassNotFoundException when transfer data between service and activity

Posted by androider on Stack Overflow See other posts from Stack Overflow or by androider
Published on 2010-12-20T05:21:04Z Indexed on 2011/01/09 7:53 UTC
Read the original article Hit count: 238

Filed under:
|
|

Hello again,

I am writing an application which is composed of an underlying service and a GUI controller. The service collects data and sends to the controller, I used Messenger and put an array of parcelable objects into the bundle of the message. But when it is received at the controller side, error occurs:

android.os.BadParcelableException: ClassNotFoundException in unmarshalling MyData ...

I am sure that MyData implements correctly Parcelable interface. It seems I have to do something with ClassLoader? or what else? Please help me. Thank you very much!

© Stack Overflow or respective owner

Related posts about android

Related posts about ipc