As I\'m learning Kotlin for Android development, I\'m now trying the basic programs like hello world and how to navigate from one activity to another activity , there is no
//On Click on Button var but = findViewById(R.id.buttionActivity_two) as Button but.setOnClickListener { //Define intent var intent = Intent(applicationContext,MainActivity::class.java) // Here "first" is key and 123 is value intent.putExtra("first",123) startActivity(intent) } } // If Get In Into Other Activity var Intent1: Intent Intent1= getIntent() //Here first is key and 0 is default value var obj :Int = Intent1.getIntExtra("first",0); Log.d("mytag","VAlue is==>"+obj)