move from activity to fragment kt kotlin code example
Example: how to move from fragment to activity in kotlin
btn.setOnClickListener {
activity.let {
val intent = Intent(it, GuardianProfile::class.java)
startActivity(intent)
}
}