Description: it is the sample code about how to use android to send and receive UDP broadcast packet.Server can broadcast message to all members on the same AP.Client can alse reply message to server too.
To Search:
File list (Check if you may need any files):
AndroidUDPSender\key
..........Listener\key
..................\bin\dexedLibs\annotations-7797007e63b2eb186fa00397bd887dac.jar
..........Sender\bin\dexedLibs\annotations-7797007e63b2eb186fa00397bd887dac.jar
................\res\drawable-ldpi\ic_launcher.png
................\...\.........mdpi\ic_launcher.png
................\...\.........hdpi\ic_launcher.png
..........Listener\res\drawable-ldpi\ic_launcher.png
..................\...\.........hdpi\ic_launcher.png
..................\...\.........mdpi\ic_launcher.png
..................\bin\res\drawable-ldpi\ic_launcher.png
..................\...\...\.........mdpi\ic_launcher.png
..................\...\...\.........hdpi\ic_launcher.png
..........Sender\bin\res\drawable-ldpi\ic_launcher.png
................\...\...\.........mdpi\ic_launcher.png
................\...\...\.........hdpi\ic_launcher.png
..........Listener\gen\wmlab\shihsuang\AndroidUDP\BuildConfig.java
..........Sender\gen\wmlab\shihsuang\AndroidUDP\BuildConfig.java
..........Listener\gen\wmlab\shihsuang\AndroidUDP\R.java
..........Sender\gen\wmlab\shihsuang\AndroidUDP\R.java
..........Listener\src\wmlab\shihsuang\AndroidUDP\UDPActivity.java
..........Sender\src\wmlab\shihsuang\AndroidUDP\UDPActivity.java
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\BuildConfig.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\BuildConfig.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\R$attr.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\R$attr.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\R$drawable.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\R$drawable.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\R$id.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\R$id.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\R$layout.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\R$layout.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\R$string.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\R$string.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\R.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\R.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\UDPActivity$1.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\UDPActivity$1.class
................\...\.......\.....\.........\..........\UDPActivity$2.class
................\...\.......\.....\.........\..........\UDPActivity$3.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\UDPActivity$ShowMsg.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\UDPActivity$ShowMsg.class
..........Listener\bin\classes\wmlab\shihsuang\AndroidUDP\UDPActivity.class
..........Sender\bin\classes\wmlab\shihsuang\AndroidUDP\UDPActivity.class
................\AndroidManifest.xml
..........Listener\AndroidManifest.xml
..................\bin\AndroidManifest.xml
..........Sender\bin\AndroidManifest.xml
..........Listener\res\layout\main.xml
..........Sender\res\layout\main.xml
................\...\values\strings.xml
..........Listener\res\values\strings.xml
..........Sender\AndroidUDP.apk
..........Listener\AndroidUDP.apk
..................\AndroidUDPListener.apk
..................\bin\AndroidUDPListener.apk
..........Sender\AndroidUDPSender.apk
................\bin\AndroidUDPSender.apk
..........Listener\bin\resources.ap_
..........Sender\bin\resources.ap_
................\...\jarlist.cache
..........Listener\bin\jarlist.cache
..........Sender\proguard.cfg
..........Listener\proguard.cfg
..........Sender\.classpath
..........Listener\.classpath
..................\bin\classes.dex
..........Sender\bin\classes.dex
................\.settings\org.eclipse.jdt.core.prefs
..........Listener\.settings\org.eclipse.jdt.core.prefs
..........Sender\.project
..........Listener\.project
..........Sender\project.properties
..........Listener\project.properties
..........Sender\src\wmlab\shihsuang\AndroidUDP
................\...\.....\shihsuang
................\...\wmlab
..............