Answers for "android studio go to another activity kotlin"

0

android studio go to another activity kotlin

findViewById<Button>(R.id.[[BUTTON ID]]).setOnClickListener{
  val intent = Intent(this, [[NAME OF ACTIVITY TO OPEN]]::class.java)
  startActivity(intent)
}
Posted by: Guest on February-21-2022
-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 "android studio go to another activity kotlin"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language