correction ip
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user