Java Code Examples for android.net.Network#toString()

The following examples show how to use android.net.Network#toString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LollipopDeviceStateListener.java    From Cake-VPN with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void onAvailable(Network network) {
    super.onAvailable(network);
    if (!network.toString().equals(mLastConnectedStatus)) {
        mLastConnectedStatus = network.toString();
        VpnStatus.logDebug("Connected to " + mLastConnectedStatus);
    }
}
 
Example 2
Source File: LollipopDeviceStateListener.java    From SimpleOpenVpn-Android with Apache License 2.0 5 votes vote down vote up
@Override
public void onAvailable(Network network) {
    super.onAvailable(network);

    if (!network.toString().equals(mLastConnectedStatus)) {
        mLastConnectedStatus = network.toString();
        VpnStatus.logDebug("Connected to " + mLastConnectedStatus);
    }
}
 
Example 3
Source File: LollipopDeviceStateListener.java    From Cybernet-VPN with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onAvailable(Network network) {
    super.onAvailable(network);
    if (!network.toString().equals(mLastConnectedStatus)) {
        mLastConnectedStatus = network.toString();
        VpnStatus.logDebug("Connected to " + mLastConnectedStatus);
    }
}
 
Example 4
Source File: LollipopDeviceStateListener.java    From EasyVPN-Free with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onAvailable(Network network) {
    super.onAvailable(network);

    if (!network.toString().equals(mLastConnectedStatus)) {
        mLastConnectedStatus = network.toString();
        VpnStatus.logDebug("Connected to " + mLastConnectedStatus);
    }
}
 
Example 5
Source File: LollipopDeviceStateListener.java    From android with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onAvailable(Network network) {
    super.onAvailable(network);

    if (!network.toString().equals(mLastConnectedStatus)) {
        mLastConnectedStatus = network.toString();
        VpnStatus.logDebug("Connected to " + mLastConnectedStatus);
    }
}
 
Example 6
Source File: LollipopDeviceStateListener.java    From bitmask_android with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onAvailable(Network network) {
    super.onAvailable(network);

    if (!network.toString().equals(mLastConnectedStatus)) {
        mLastConnectedStatus = network.toString();
        VpnStatus.logDebug("Connected to " + mLastConnectedStatus);
    }
}