Difference between Android net and WAP access point

When we use Android devices to connect to the network, if it is a WAP access point, we need to set an agent. The agents of China Telecom and China Unicom are different. The WAP agents of China Mobile and China Unicom are both 10.0 0.172:80, the WAP proxy of Telecom is 10.0 0.200:80, so it is necessary to judge the access point during Android development.

Type of access point

Net network: Operator (China Mobile Unicom Telecom) net network, WiFi, USB network sharing

WAP network: Mobile Unicom WAP (same proxy: 10.0.0.172:80), telecom WAP (proxy: 10.0.0.200:80)

In this way, three network types can be abstracted: Unicom Mobile WAP, telecom WAP, and the others are net types.

Access point judgment example

The following gives the example code of access point judgment, in which some comments are made, which should be paid attention to in the actual project development. Share it with you for reference.

Java code

The above is the complete example code, with detailed comments attached. I believe you can see it very clearly.

Through this article, I hope I can help you. Thank you for your support to this site!

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
分享
二维码
< <上一篇
下一篇>>