diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-07 14:05:12 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-07 14:05:12 +0100 |
commit | 845713f1d1302dcbf60a6ce0a095af330157b0d2 (patch) | |
tree | f878289190f64ea9c1b127406bd6025bbfbd56a5 /same-android/src/main/java | |
parent | a203162a09591803fca8411c87337bd916ebf51b (diff) |
Improve layout code.
Descriptive ids in layout.
Diffstat (limited to 'same-android/src/main/java')
-rw-r--r-- | same-android/src/main/java/com/orbekk/SameControllerActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/same-android/src/main/java/com/orbekk/SameControllerActivity.java b/same-android/src/main/java/com/orbekk/SameControllerActivity.java index fb9b103..76e6416 100644 --- a/same-android/src/main/java/com/orbekk/SameControllerActivity.java +++ b/same-android/src/main/java/com/orbekk/SameControllerActivity.java @@ -30,7 +30,7 @@ public class SameControllerActivity extends Activity { Intent intent = new Intent(this, SameService.class); intent.setAction("join"); // InetAddress address = new Broadcaster(this).getBroadcastAddress(); - EditText t = (EditText)findViewById(R.id.editText1); + EditText t = (EditText)findViewById(R.id.master_service_url); intent.putExtra("masterUrl", t.getText().toString()); startService(intent); } @@ -42,7 +42,7 @@ public class SameControllerActivity extends Activity { } private void showBroadcastAddress() { - EditText t = (EditText)findViewById(R.id.editText1); + EditText t = (EditText)findViewById(R.id.master_service_url); t.setText(new Broadcaster(this).getBroadcastAddress().getHostAddress()); } |