My application is working perfect in wifi and mobile networks, but fails to detect when connected through bluetooth tethering.
public boolean isNetworkAvailable() {
ConnectivityManager cm = (ConnectivityManager)
getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo networkInfo = cm.getActiveNetworkInfo();
if (networkInfo != null && networkInfo.isConnected()) {
return true;
}
return false;
}
I tried running a few other applications . they also shows no network connectivity, But google applications works perfect and so as some other apps like whatsap. Wondering how they are doing it, and why most of the applications missing this point..
Can anyone tell me a way to check the internet connectivity in android, through all means available,including bluetooth pan and proxy,etc.
Any help will be appreciated. Thanks in advance..