Added ARenzi`s Reachability fixes.

This commit is contained in:
filmaj
2010-02-23 11:07:30 -08:00
parent b0054aa1b4
commit 02c750134c
4 changed files with 126 additions and 184 deletions
@@ -32,8 +32,13 @@ public class NetworkManager {
public boolean isWifiActive()
{
NetworkInfo info = sockMan.getActiveNetworkInfo();
String type = info.getTypeName();
return type.equals("WIFI");
String type = "";
if (info!=null)
{
info.getTypeName();
return type.equals("WIFI")
}
return false;
}
public boolean isReachable(String uri)
@@ -50,6 +55,4 @@ public class NetworkManager {
}
return reached;
}
}