Android studio Bumblebee 2021.1.1
All I am simply trying to do is get or retrieve text input from edittext field and it simply doesn't work no matter how I do it. I have searched everywhere including stackoverflow for solution or answer but with no success. Here is my code.
...
val courseNameEdt = findViewById<EditText>(R.id.idEdtCourseName)
...
addCourseBtn.setOnClickListener{
var courseName = courseNameEdt.text.gettext() //doesn't work | unresolved reference gettext() and won't compile
//var courseName = courseNameEdt.text doesn't work either | app compiles, crashes and stops running when launched
//var courseName = courseNameEdt.text.toString()doesn't work either | app compiles, crashes and stops running when launched
}
So, what am I doing wrong? Is there a fourth ways to do this?
