Bringing this in line with the iPhone

This commit is contained in:
Joe Bowser 2009-11-05 13:08:59 -08:00
parent 0b9ea56fc1
commit b979be32c9

View File

@ -27,6 +27,13 @@ public class NetworkManager {
return conn;
}
public boolean isWifiActive()
{
NetworkInfo info = sockMan.getActiveNetworkInfo();
String type = info.getTypeName();
return type.equals("WIFI");
}
public boolean isReachable(String uri)
{
if (uri.indexOf("http://") == -1)