Cant retrieve dhcp info on Android 2.2
<p>I have this code working on Android 4.0.3 on the Nexus One:</p>

<pre><code>WifiManager wifi = (WifiManager) getSystemService(WIFI_SERVICE); 
        DhcpInfo info = wifi.getDhcpInfo();
        String s_gateway = String.valueOf(info.gateway); 
        String gatewayString = intToIp(Integer.parseInt(s_gateway));
        Log.d("DHCP Info: ", s_gateway+"");
        Log.d("DHCP Info: ", gatewayString+"");
</code></pre>

<p>It's return me gateway (PC + Connectify) correctly.</p>

<p>But the same code on Android 2.2 return 0.0.0.0. What is wrong? </p>
