From 845713f1d1302dcbf60a6ce0a095af330157b0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Tue, 7 Feb 2012 14:05:12 +0100 Subject: Improve layout code. Descriptive ids in layout. --- same-android/src/main/java/com/orbekk/SameControllerActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'same-android/src') 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()); } -- cgit v1.2.3