EDIT # 2 : Actually, I found a way to make it work :). See Updated Answer below.
EDIT No. 1 . While the application compiles just fine, it crashes when trying to create Parcel
with an error: org.parceler.ParcelerRuntimeException: Unable to create ParcelableFactory for io.realm.FeedRealmProxy
. The Realm team has officially recognized that it is currently not possible to implement Parcelable
on RealmObject
s. It is unclear whether / when this will be allowed.
With Parceler v0.2.16 you can do this:
@RealmClass
Then use Parcels.wrap(Feed.class, feed)
instead of Parcels.wrap(feed)
everywhere, otherwise your application will fail using org.parceler.ParcelerRuntimeException: Unable to create ParcelableFactory for io.realm.FeedRealmProxy
.
source share