Hi Batz,
Welcome to the Ranch!
In order to cast to
Serializable, your Product class must implement the Serializable interface:
As objects within the
Intent wrapper could be passed across Threads during the startActivity call, the objects needs to be in a data transferable state. That's where Serialization comes into play. For more information, consider reviewing:
https://coderanch.com/t/660236/Wiki/Data-Transfer-Object
I'll add that using the Serializable interface in Android isn't a great idea. Serializable has a lot of baggage that in the resource limited Android world can slow down your app. Android has it's own, much more lightweight, version of Serializable called
Parcelable. It's a bit tricky to implement, however, with lots of boilerplate code (google "parcelable generator" for sites that can help with that).