correction ip
This commit is contained in:
parent
ef46cc3aa1
commit
57e43ecd18
@ -25,7 +25,7 @@
|
||||
</value>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
@ -18,20 +18,16 @@ public class MainActivity extends AppCompatActivity {
|
||||
/** Called when the user taps the Send button */
|
||||
public void sendMessage(View view) {
|
||||
EditText editText1 = (EditText) findViewById(R.id.ipAddress);
|
||||
//String ipAddress = editText1.getText().toString();
|
||||
String ipAddress ="192.168.157.16";
|
||||
String ipAddress = editText1.getText().toString();
|
||||
|
||||
EditText editText2 = (EditText) findViewById(R.id.port);
|
||||
// int port = Integer.parseInt(editText2.getText().toString());
|
||||
int port = 503;
|
||||
int port = Integer.parseInt(editText2.getText().toString());
|
||||
|
||||
EditText editText3 = (EditText) findViewById(R.id.ref);
|
||||
// int ref = Integer.parseInt(editText3.getText().toString());
|
||||
int ref = Integer.parseInt(editText3.getText().toString());
|
||||
|
||||
EditText editText4 = (EditText) findViewById(R.id.count);
|
||||
// int count = Integer.parseInt(editText4.getText().toString());
|
||||
int ref = 1;
|
||||
int count = 8;
|
||||
int count = Integer.parseInt(editText4.getText().toString());
|
||||
|
||||
GlobalState state = (GlobalState) getApplicationContext();
|
||||
state.setIpAddress(ipAddress);
|
||||
|
@ -22,7 +22,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="status"
|
||||
android:text="bla"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView1" />
|
||||
@ -32,7 +32,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="exception"
|
||||
android:text="foo"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView2" />
|
||||
@ -42,7 +42,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="finally"
|
||||
android:text="bar"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView3" />
|
||||
|
Loading…
Reference in New Issue
Block a user