Hey there people I'm new to Android and Kotlin can you help me with this please.
recognizer.recognize(ink)
.addOnSuccessListener { result: RecognitionResult ->
Toast.makeText(context, "I see ${result.candidates[0].text}", Toast.LENGTH_LONG)
.show()
}
here the results is posted to a toast and I want it to be in a text box how to do that ?
You will need to define a TextView in your layout file and then setText(...) with the detection result you get in onSuccessListener.