小编Ben*_*kin的帖子

Android Check if there is WiFi but no internet

I am writing a program where I need to check three states: 1. If I have no WiFi, 2. if I have WiFi but no internet connection (like if I turn on my router but unplug the Ethernet cable), and 3. if I have WiFi and internet connection. I would then change color of a icon in my app to represent one of these states (red, yellow, or green). Currently condition 2 does not work, anytime I unplug the cable …

connection android wifi

8
推荐指数
1
解决办法
5204
查看次数

标签 统计

android ×1

connection ×1

wifi ×1