Answers for "kotlin add activity to another activity"

-2

how to start activity from fragment in kotlin

activity?.let{
    val intent = Intent (it, Main::class.java)
    it.startActivity(intent)
}
Posted by: Guest on February-15-2021
-2

android studio change activity kotlin

val button: Button = findViewById(R.id.Button)

button.setOnClickListener{

	val intent: intent = Intent(applicationContext, ActivityToBeOpened::class.java){

		startActivity(intent)

	}
}
Posted by: Guest on July-04-2021

Code answers related to "kotlin add activity to another activity"

Browse Popular Code Answers by Language