组播测试demo(android)
用于测试手机是否可接受组播 打开组播锁的关键代码 WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); mMulticastLock = wifiManager.createMulticastLock("multicast.test"); if (mMulticastLock != null){ mMulticastLock.acquire(); }
文件列表
MulBrocastTest.zip
(预估有个20文件)
MulBrocastTest
res
drawable-ldpi
ic_launcher.png
2KB
drawable-hdpi
ic_launcher.png
8KB
drawable-xhdpi
ic_launcher.png
13KB
values
strings.xml
227B
用户评论