does android drop the cellular connection when there is a wifi connection?
<p>I am using the following code to iterate through the network interfaces on android:</p>

<pre><code>try {
    for (Enumeration&lt;NetworkInterface&gt; en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
        NetworkInterface intf = en.nextElement();
        for (Enumeration&lt;InetAddress&gt; enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {
            InetAddress inetAddress = enumIpAddr.nextElement();
            if (!inetAddress.isLoopbackAddress()) {
                 Log.e("get ip: ", inetAddress.getHostAddress());

            }
        }
    }
</code></pre>

<p>but if I am connected to a wifi network I only get the wifi IP, where I would expect both the wifi and cellular ip (the phone is on the cell network and got a ip, then I turn on the wifi and suddenly it only reuturns the wifi ip). </p>

<p>So do anyone know what happens? If I use similar code on a iphone I get both cellular and wifi IP.</p>
