diff --git a/src/android/NetworkManager.java b/src/android/NetworkManager.java index ac0faae..19443f0 100755 --- a/src/android/NetworkManager.java +++ b/src/android/NetworkManager.java @@ -45,6 +45,7 @@ public class NetworkManager extends CordovaPlugin { public static final String WIFI = "wifi"; public static final String WIMAX = "wimax"; + public static final String ETHERNET = "ethernet"; // mobile public static final String MOBILE = "mobile"; @@ -240,6 +241,9 @@ private String getType(NetworkInfo info) { if (type.equals(WIFI)) { return TYPE_WIFI; } + else if (type.toLowerCase().equals(ETHERNET)) { + return TYPE_ETHERNET; + } else if (type.equals(MOBILE) || type.equals(CELLULAR)) { type = info.getSubtypeName(); if (type.equals(GSM) ||