diff --git a/src/com/limelight/Connection.java b/src/com/limelight/Connection.java index 5e80d252..4f91cc0e 100644 --- a/src/com/limelight/Connection.java +++ b/src/com/limelight/Connection.java @@ -28,8 +28,6 @@ public class Connection extends Activity { private static final String DEFAULT_HOST = "192.168.1.240"; public static final String HOST_KEY = "hostText"; - - @Override public void onResume() { @@ -58,20 +56,18 @@ public class Connection extends Activity { Log.v("NvmDNS", "onCreate"); - NvmDNS dns = new NvmDNS(); - dns.execute(); + NvmDNS dns = new NvmDNS(); + dns.execute(); setContentView(R.layout.activity_connection); - this.statusButton = (Button) findViewById(R.id.statusButton); this.pairButton = (Button) findViewById(R.id.pairButton); this.hostText = (TextView) findViewById(R.id.hostTextView); - - //prefs = getPreferences(0); - //this.hostText.setText(prefs.getString(Connection.HOST_KEY, Connection.DEFAULT_HOST)); + prefs = getPreferences(0); + this.hostText.setText(prefs.getString(Connection.HOST_KEY, Connection.DEFAULT_HOST)); this.statusButton.setOnClickListener(new OnClickListener() { @Override diff --git a/src/com/limelight/nvstream/NvComputer.java b/src/com/limelight/nvstream/NvComputer.java index 8a495cdb..4dce98ea 100644 --- a/src/com/limelight/nvstream/NvComputer.java +++ b/src/com/limelight/nvstream/NvComputer.java @@ -96,7 +96,7 @@ public class NvComputer { returnStringBuilder.append("\n|- Hostname: "); returnStringBuilder.append(this.hostname); returnStringBuilder.append("\n|- IP Address: "); - returnStringBuilder.append(this.ipAddress.toString()); + returnStringBuilder.append(this.ipAddressString); returnStringBuilder.append("\n|- Computer State: "); returnStringBuilder.append(this.state); returnStringBuilder.append("\n|- Number of Apps: "); diff --git a/src/com/limelight/nvstream/NvmDNS.java b/src/com/limelight/nvstream/NvmDNS.java index 767f9858..65a5b2a4 100644 --- a/src/com/limelight/nvstream/NvmDNS.java +++ b/src/com/limelight/nvstream/NvmDNS.java @@ -33,7 +33,7 @@ public class NvmDNS extends AsyncTask { public static InetAddress MDNS_MULTICAST_ADDRESS; public static final short MDNS_PORT = 5353; - public static final int WAIT_MS = 100; + public static final int WAIT_MS = 1000; private HashSet responses; private MulticastSocket socket;