How would one go about scanning for WiFi networks with Java? I have been looking on google but the only snippets I could find were for the Android OS.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
As far as I know, standard (non-Android, J2SE) Java doesn't permit this:
- Finding SSID of a wireless network with Java
Android, as you know, has a Wifi SDK:
- http://developer.android.com/reference/android/net/wifi/WifiManager.html
As does Windows/.Net:
How to scan the wireless devices which exist on the network
http://msdn.microsoft.com/en-us/library/bb204766%28v=vs.85%29.aspx