Hello! am using supabase in my project that plays ...
# android
k
Hello! am using supabase in my project that plays movies where i create a a column called Seasons with data type json, and that season json i added episodes, and i was able to fetch them, Now this is the problem i face, whenever i display those series and episodes on a screen then put the app in background it crashes this is wat i get from the logcat FATAL EXCEPTION: main Process: io.kawogo.movies, PID: 17708 android.os.BadParcelableException: Parcelable encountered IOException writing serializable object (name = io.kawogo.movies.view.screens.details.DetailsScreen)     at android.os.Parcel.writeSerializable(Parcel.java:2906)     at android.os.Parcel.writeValue(Parcel.java:2672)     at android.os.Parcel.writeValue(Parcel.java:2471)     at android.os.Parcel.writeList(Parcel.java:1452)     at android.os.Parcel.writeValue(Parcel.java:2615)     at android.os.Parcel.writeValue(Parcel.java:2471)     at android.os.Parcel.writeList(Parcel.java:1452)     at android.os.Parcel.writeValue(Parcel.java:2615)     at android.os.Parcel.writeValue(Parcel.java:2471)     at android.os.Parcel.writeMapInternal(Parcel.java:1303)     at android.os.Parcel.writeMap(Parcel.java:1285)     at android.os.Parcel.writeValue(Parcel.java:2585)     at android.os.Parcel.writeValue(Parcel.java:2471)     at android.os.Parcel.writeMapInternal(Parcel.java:1303)     at android.os.Parcel.writeMap(Parcel.java:1285)     at android.os.Parcel.writeValue(Parcel.java:2585)     at android.os.Parcel.writeValue(Parcel.java:2471)     at android.os.Parcel.writeList(Parcel.java:1452)     at android.os.Parcel.writeValue(Parcel.java:2615)     at android.os.Parcel.writeValue(Parcel.java:2471)     at android.os.Parcel.writeArrayMapInternal(Parcel.java:1335)     at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1843)     at android.os.Bundle.writeToParcel(Bundle.java:1389)     at android.os.Parcel.writeBundle(Parcel.java:1404)     at android.os.Parcel.writeValue(Parcel.java:2588)     at android.os.Parcel.writeValue(Parcel.java:2478)     at android.os.Parcel.writeArrayMapInternal(Parcel.java:1335)     at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1843)
not kotlin but kotlin colored 3
😵‍💫 2
🧵 1
c
1. this question is off-topic here. We talk about Kotlin not Android in general. 2. Long code snippets should go to thread here. Please check the code of conduct and the channel description for more information.
k
Someone is the supabase channel directed me in this channel,
t
This is Kotlin and Android but they are fast on the Not Kotlin stuff 😉 You need to add
, Serializable
to your object Parcelable so they can be properly serialized (And ensure everything is parcelable / serializable)
c
K android new Using Kotlin to build Android apps. Avoid not kotlin but kotlin colored. not kotlin but kotlin colored should go to: https://discord.com/invite/D2cNrqX http://android-united.community/ https://androidchat.co/
c
@Tolriq
Serializalbe
is a Java interface and
Parcelable
is an Android construct - that’s why it’s not kotlin but kotlin colored . OP would have the same issue when using plain Java in an Android project. 😉
k
@Tolriq see here