[android-developers] Obtaining IP address when on 3G (MOBILE) connection

2009-03-16 Thread Joseph Teo
Hi Folks, I have a small question. When i'm connected to WIFI, I could use the following code to obtain the IP address of the Android phone WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); int ipAddress =

[android-developers] Obtaining IP address when on 3G (MOBILE) connection

2009-03-16 Thread Joseph Teo
Hi Folks, I have a small question. When i'm connected to WIFI, I could use the following code to obtain the IP address of the Android phone WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); int ipAddress =