I have two Activity class one that is holding the value from the class, second the one who is retrieving the value. I am trying to pass the variable to another Activity class via constructor.
Here is the intent in the 1st activity class
val intent = Intent(activity, IntentContentActivity(quote)::class.java)
intent.putExtra("intentFragment", i.toString())
startActivity(intent)
I tried to debug it so I can see if the data has been passed and it does here what it looks like as you can see the Quote@6908
are passed but still return to me this error. Can someone tell me whats going on here?
Caused by: java.lang.InstantiationException: java.lang.Class<ph.com.sdsolutions.colfinancial.app.IntentContentActivity> has no zero argument constructor