i have taken var1 var2 and result as id
val ans= var1.text.toString().toInt()+var2.text.toString().toInt()
result.text=ans.toString()
this code is showing error in text
Text error oujo9johji
You might be having numberformatexception. Can you share the log of the code?