from fragment to activity in android studio kotlin code example
Example: how to start activity from fragment in kotlin
activity?.let{
val intent = Intent (it, Main::class.java)
it.startActivity(intent)
}
activity?.let{
val intent = Intent (it, Main::class.java)
it.startActivity(intent)
}