Import the net.rim.device.api.system.WLANInfo class.
if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {…}
需要jde4.3及以上
原帖地址
http://docs.blackberry.com/en/developers/deliverables/9137/Check_if_the_WiFi_transceiver_is_connected_509030_11.jsp
本文介绍了一种使用BlackBerry平台的方法来检查设备是否已通过WiFi连接到互联网。此方法需要调用net.rim.device.api.system.WLANInfo类并利用其提供的getWLANState()方法判断当前WiFi收发器的状态。

被折叠的 条评论
为什么被折叠?



