https://kotlinlang.org logo
#android
Title
# android
t

T8522192

10/05/2023, 5:15 AM
Question about storing intent on local cache, is doing this a bad practice? if not, how to avoid complain error when I trying to use kotlin serialization for local cache?
Copy code
Serializer for class 'Intent' is not found.
Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.
c

Chrimaeon

10/05/2023, 6:27 AM
To serialize an intent would be hard because of the
extras
so a intent is „parceable“. You can try though to write your own serializer. Nothing stops you from that.
The error message just tells you that you came not registered a serializer for the intent class.
t

T8522192

10/05/2023, 6:51 AM
got it, thanks for the explanation