<How to format getSerializableExtra() arguments fo...
# forum
r
How to format getSerializableExtra() arguments for data class object I was following Philip Lackner’s course on passing data from one activity to another using a Serializable data class (g4dHead). The original functions used by Lackner are now deprecated, however I have succeeded in coding the forward transaction as follows: val gatorHd = g4dHead(setCurrentMode,motorIsRunning,btPaired,btBound, btAddress, motorSpeed, ledDuration, ledTiming, bLedIsActive) val jsonString_g4d = Json.encodeToString(gatorHd) binding.ibtnBluetooth.setOnClickListener{...