Vivek Modi
04/28/2021, 10:54 AMd*ata class Customer(val item: int,val name : String)
.* i want to pass through bundle. val bundle = Bundle()
but i didn't get which one i used putParcelable or something else. bundle.*putParcelable("customer, Customer(1,"X")")*
. It giving error Customer is not parcelableandylamax
04/28/2021, 10:57 AMVivek Modi
04/28/2021, 10:58 AMDhaval Gondaliya
04/28/2021, 11:40 AMVivek Modi
04/28/2021, 1:49 PMgildor
04/29/2021, 9:25 AMPaul Woitaschek
04/30/2021, 7:49 AManyway, you need to make it parcelable (extend) without it, bundle withh give errorIt's an interface. You extend classes and implement interfaces.
gildor
04/30/2021, 9:28 AMgildor
04/30/2021, 9:29 AMPaul Woitaschek
04/30/2021, 9:30 AMDhaval Gondaliya
04/30/2021, 9:31 AMzaferc
04/30/2021, 12:19 PMDhaval Gondaliya
04/30/2021, 12:22 PMzaferc
04/30/2021, 1:02 PMDhaval Gondaliya
04/30/2021, 1:06 PMkotlin-android-extensions
which was deprecated and if you want to use parcelable now we need to use kotlin-parcelable
, without it android studio will use extensions by default.