To open a activity
from another activity use
startActivity(Intent(this, SegundaActivity::class.java)
But it's not like referring to the this
when I want to launch it when I press a button ...
in java I indicate it with MainActivity.this
but in Kotlin it is not how you can refer to the mother activity.
fab.setOnClickListener { view ->
startActivity(Intent(???this???, SegundaActivity::class.java)
}