0

I've been to see the new updates of the Realm 0.88 and I found this interesting:

  • Implement interfaces.

Well, I try implement an interface (Serializable) without success. when I put a object on the intent I get this error:

java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = com.test.realmtest.network.search.response.Hotel)"

I'm doing something wrong?

extmkv
  • 1,991
  • 1
  • 18
  • 36

1 Answers1

1

Even though RealmObjects support interfaces, they are not parcelable. At least not yet. There is an issue tracking it here: https://github.com/realm/realm-java/issues/878

There is a work-around described here: https://realm.io/docs/java/latest/#intents

Christian Melchior
  • 19,978
  • 5
  • 62
  • 53