correction ip

This commit is contained in:
misty
2018-06-13 22:35:13 +02:00
parent ef46cc3aa1
commit 57e43ecd18
3 changed files with 8 additions and 12 deletions

View File

@@ -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);