I am very new to the Android platform. I need to make a connection with a UDP server by using my Android UDP client. Now, I need to know how to work with UDP in Android. Please guide me to do this.
You can work with UDP in Android applications just like in any Java app, with java.net.DatagramSocket
and java.net.DatagramPacket
. There's a short sample app available at http://www.anddev.org/udp-networking_-_within_the_emulator-t280.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With