How to detect in Android that WIFI is ON, but unreachable? -


does know how programatically detect in android wifi unreachable? i've got app running able detect type of network connection , whether on or not (networkinfo class), can't detect wifi on, out of reach on other side of building, there no internet. network info keeps on saying type of network wifi, isconnected = true, getdetailedstate = connected, these don't me.

detect wifi connected or on. if wifi not connected internet connection display message "wifi unreachable or no internet connection."

for checking wifi connected use following code.

connectivitymanager connmanager = (connectivitymanager) getsystemservice(connectivity_service); networkinfo mwifi = connmanager.getnetworkinfo(connectivitymanager.type_wifi);  if (mwifi.isconnected()) {     // whatever } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -