In my J2ME application i want to detect network type whether it is 2G or 3G. According to network type, i need to take some different actions. How can it be done by code?
相关问题
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- What would prevent code running in a Docker contai
- How to run tcp and udp on a single port at same ti
- Docker-Compose: Can't Connect to Mongo
- Make Laravel Homestead Accessible via the Internet
相关文章
- RMI Threads prevent JVM from exiting after main()
- fsc.exe is very slow because it tries to access cr
- How many times will TCP retransmit
- Writing an OS X kernel extension to implement Linu
- Virtual Box limit Bandwith on network [closed]
- Is ICMP a transport layer protocol?
- How to add negative filter in network tab of Chrom
- Chrome failing to connect to websocket server (Opc
For Network type following syntax is used
You can check this artical.
The return values can be as follows,
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
So based on return value, you can get the Network Type.