How to connect with udp in android?
I am new to android.I need to 开发者_开发问答know how to connect (communicate) with PC’s UDP server with android client.Can anyone give a simple example ( Guide me to understand)
With Android you have a broad range of packages you can work with so most existing examples of a UDP client/server for Java should provide sufficient.. Try taking a look at something simple and expand from there. The only thing to note is to try and follow the Android developer guidelines when implementing any code for maximum efficiency.
Simple Java UDP example
More Java socket examples
精彩评论