Android - Detect if Wifi Requires Browser Login

后端 未结 5 2140
时光说笑
时光说笑 2020-12-29 07:25

My university has an open wifi access point, however it requires you to enter your e-mail before it allows you to use the web. My problem is that the Wifi is stupid in that

5条回答
  •  感动是毒
    2020-12-29 08:24

    The issue might rather be - today at least - that newer Android versions (5.1+?) keep the 3G/4G connection up and running until the wifi login actually leads to a fully functional wifi connection.

    I haven't tried it, but maybe with the enum value CAPTIVE_PORTAL_CHECK of NetworkInfos DetailedState one can try to detect such a mode properly?

提交回复
热议问题