I have two EditText input fields (inputType="phone") one for IP address and one for port number. I want to get the two values in a string form.
val ip : String = findViewById<EditText>(R.id.ip).toString()
val port: String = findViewById<EditText>(R.id.port).toString()
println("IP AND PORT: $ip : $port")
The ouput is something like: androidx.appcompat.widget.AppCompatEditText...