[Android] network link types and channels

1. Implementation mode

1.1 using httpurlconnection

1.2 using httpclient

1.3 use sockets, such as pea pods and chat tools

2. Communication channels

2.1 WLAN (Wi Fi), data transmission of about 100m

2.2 mobile phone APN access point (base station)

2.2.1 WAP, with Chinese characteristics, will first connect to the telecom operator agent to intercept 10.0.0.172, and the httpurlconnection will be unstable

2.2.2. Net mode

3. Communication tools

3.1 judging network type

Judge whether it is WiFi or APN according to the context, and then judge the access mode of APN. WAP has proxy information and net does not

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>