bob wrote: > I have this code to get an IP address in Android: > > WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); > WifiInfo wifiInfo = wifiManager.getConnectionInfo(); > int ipAddress = wifiInfo.getIpAddress(); > > Is there any easy way to convert this to a String? >
http://developer.android.com/reference/java/lang/Integer.html#toOctalString(int) http://developer.android.com/reference/java/lang/String.html#substring(int, int) http://developer.android.com/reference/java/lang/Integer.html#parseInt(java.lang.String, int) http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.18.1 -- Lew -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

