b2.setOnClickListener(View.OnClickListener {
var mail:String= et1.text.toString();
val i = Intent(Intent.ACTION_SENDTO);
i.data=Uri.parse("mailto"+mail)
i.putExtra(Intent.EXTRA_SUBJECT,"SUBJECT IS HERE")
i.putExtra(Intent.EXTRA_TEXT,"HELLO WORLD ")
startActivity(i);
//(by using chooser it tells me that no app can perform this action)//startActivity(Intent.createChooser(i,"send mail to ......"))
})
getting error when i am using the same code as sir …in this video