<How to use socket in Android with Kotlin> I want ...
# stackoverflow
u
How to use socket in Android with Kotlin I want to achieve something in Android using Kotlin to do: If I click a button on the app, the app sends a word to a TCP server (which I wrote with python). The server will send back another word, and the app will show a toast message. Here is what I have done so far, I can figure out the sending part but I can't manage to make it keep listening to the socket to hear from the server. I am trying to use coroutine but after finding all the resources online, this is as best as I can get. Also, I...