diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-12-25 23:51:48 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-12-25 23:51:48 +0100 |
commit | 367fd28be00e541f251854893b0eeeb5168e59d3 (patch) | |
tree | 53da64ff70568f46a271cc8a916130b1b8f7239e /src/de/blinkt/openvpn/NetworkSateReceiver.java | |
parent | c1d78fac8eefc4f8c4eaab7b91bf54698fe29466 (diff) | |
parent | c9dc454f4ec38f075f951fbf32935054023eed94 (diff) |
Merge again
Diffstat (limited to 'src/de/blinkt/openvpn/NetworkSateReceiver.java')
-rw-r--r-- | src/de/blinkt/openvpn/NetworkSateReceiver.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/NetworkSateReceiver.java b/src/de/blinkt/openvpn/NetworkSateReceiver.java index a649bd65..e20c8e52 100644 --- a/src/de/blinkt/openvpn/NetworkSateReceiver.java +++ b/src/de/blinkt/openvpn/NetworkSateReceiver.java @@ -37,10 +37,23 @@ public class NetworkSateReceiver extends BroadcastReceiver { if(extrainfo==null)
extrainfo="";
+ /*
+ if(networkInfo.getType()==android.net.ConnectivityManager.TYPE_WIFI) {
+ WifiManager wifiMgr = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
+ WifiInfo wifiinfo = wifiMgr.getConnectionInfo();
+ extrainfo+=wifiinfo.getBSSID();
+
+ subtype += wifiinfo.getNetworkId();
+ }*/
+
+
+
netstatestring = String.format("%2$s %4$s to %1$s %3$s",networkInfo.getTypeName(),
networkInfo.getDetailedState(),extrainfo,subtype );
}
+
+
if(networkInfo!=null && networkInfo.getState() == State.CONNECTED) {
int newnet = networkInfo.getType();
|