如何检查网络类型(java中的WiFi或3G?(使用IP地址)?
答案 0 :(得分:0)
这取决于平台,在诺基亚你可以试试这个:
String value = System.getProperty(“com.nokia.network.access”);
可能的返回值是:
• pd - Packet data in GSM network
• pd.EDGE - Packet data in EDGE network
• pd.3G - Packet data in 3G network
• pd.HSDPA - High speed downlink packet access for 3G networks
• csd - Circuit switched data, for example GSM CSD/HSCSD data call
• bt_pan - Bluetooth PAN network
• wlan - Wireless network, for example 802.11b, 802.11G or WiMaX
• ‘na’ Not applicable, the implementation can’t determine the type
来源:http://developer.nokia.com/Community/Wiki/TSJ000306_-_MIDP:_System_properties