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
first you should do this,
var userName = username.text.toString()
var password = password_field.text.toString()
Add Anko dependency.
implementation "org.jetbrains.anko:anko:0.10.4"
information passing inside MainActivity()
is like
startActivity<SecondActivity>("Username" to userName,"Password" to password )
get information from SecondActivity()
is,
val profileName=intent.getStringExtra("Username")