Unmarshalling errors in Android app with custom parcelable classes

后端 未结 3 1511
有刺的猬
有刺的猬 2020-12-04 22:52

For my Android application, I get several unmarshalling errors although I think I\'ve done everything that is needed to properly save and load objects via Parcelable

3条回答
  •  -上瘾入骨i
    2020-12-04 23:09

    Before reading from bundle, set ClassLoader:

    bundle.setClassLoader(getClass().getClassLoader());
    

    This saved my time!

提交回复
热议问题