diff --git a/res/layout/main.xml b/res/layout/main.xml index 535657b..9f499d3 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -8,9 +8,7 @@ android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:typeface="monospace" - android:singleLine="true" android:background="#ff112266" - android:scrollHorizontally="true" android:text="IP: XXX" /> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces()); for (NetworkInterface intf : interfaces) { @@ -178,11 +179,14 @@ public class SimpleSSHD extends Activity if (i != -1) { ip = ip.substring(0,i); } - return ip; + if (!ret.equals("")) { + ret += "\n"; + } + ret += "IP: "+ ip; } } } } catch (Exception ex) { } // for now eat exceptions - return ""; + return ret; } }