Problem unmarshalling parcelables

后端 未结 10 1923
旧时难觅i
旧时难觅i 2020-11-27 15:45

I\'ve got a few classes that implement Parcelable and some of these classes contain each other as properties. I\'m marshalling the classes into a Parcel to pass them between

10条回答
  •  时光取名叫无心
    2020-11-27 16:10

    Because this was not answered in "answer" but in comment I will post an answer: As @Max-Gontar pointed you should use LocationType.class.getClassLoader() to get the correct ClassLoader and get rid of ClassNotFound exception, i.e.:

    in.readParceleable(LocationType.class.getClassLoader());

提交回复
热议问题