erased main activity
This commit is contained in:
@@ -17,13 +17,15 @@ 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 = "172.16.202.14";
|
||||
//EditText editText1 = (EditText) findViewById(R.id.ipAddress);
|
||||
//String ipAddress = editText1.getText().toString();
|
||||
//String ipAddress = "172.16.202.14";
|
||||
|
||||
String ipAddress = "10.0.0.60";
|
||||
int port = 502;
|
||||
|
||||
EditText editText2 = (EditText) findViewById(R.id.port);
|
||||
// int port = Integer.parseInt(editText2.getText().toString());
|
||||
//EditText editText2 = (EditText) findViewById(R.id.port);
|
||||
//int port = Integer.parseInt(editText2.getText().toString());
|
||||
|
||||
GlobalState state = (GlobalState) getApplicationContext();
|
||||
state.setIpAddress(ipAddress);
|
||||
|
Reference in New Issue
Block a user