froggyfreshrap
Lurker
I'm coding an app where the user can input a text message and send it over UDP. My MainActivity consists of a page where the user inputs the ip address of the server and the port. As soon as the user presses on the connect button, it will create a socket and send an empty packet. Also when the user presses the connect button, the SecondActivity will start. The SecondActivity consists of a EditText input field, where text can be inserted and sent. I want the messages sent over the same UDP socket created in the MainActivity. I got a separate class for the UDP client. How can I code this?
ps I can upload my code on request
ps I can upload my code on request