class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
btnLogin.setOnClickLister {
val intent = Intent(this, homemenu::class.java)
startActivity(intent)
}
} }
I have set the button for the Intent function. But it is still an error how can I fix this. The task I just only want the button after click it will head to another activity. appreciate for helping