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